Stoplight
11 months agoCommunity Manager
Using slugs to access directly endpoints
Originally posted by user HHChift to the Stoplight Community on 01/16/2023 at 11:10 ET.
Hey all,
I would like to be able from an external website to have links to specific endpoints in my documentation based on the OpenAPI schema of my API.
I'm following this tutorial: https://meta.stoplight.io/docs/platform/hosted-docs/stoplight-urls
I've defined slugs on my API so that I can access an endpoint directly with for example: docs/{project-slug}/payments-api/operations/get-a-user
But I'm not able to find from where from the openapi spec the "get-a-user" part is retrieved ?
The operationId of my specifications do not match with the operationId in the URLs , any idea how I can fix this ?
Thanks.