#Directus Open API

14 messages · Page 1 of 1 (latest)

jagged needle
#

Hi !

How we can generate a file like swagger , in order to show from web , the endpoints of the cms?

thorn osprey
jagged needle
#

Yes I saw the Documentation , but , how I can show from url , the endpoint list ? like swagger do

thorn osprey
#

Use the open api spec <your-directus>/server/specs/oas?access_token=<TOKEN> and load that into swagger https://editor.swagger.io/ (import URL)

jagged needle
#

ah ok ! thank you buddy! I will try

#

It works! thank you!

#

In order to show the same view, inside to my cms repo , directus have the config to show the swagger interface?, because I want to have the same view with a custom url , into my cms, is possible?

#

Something like this

thorn osprey
jagged needle
#

Ah ok perfect bro, thank you for your help 😄

jagged needle
#

@thorn osprey Hi Bro ! , how I can edit the example schema? , and other question , this not work like a api simulation rigth?

thorn osprey
jagged needle
#

Test the endppoint, because I only can use the try button , but can not run the endpoint to testing