IMPORT _ EXPORT
Importing OpenAPI / Swagger
API Try It!
2 min
the try it! feature allows you to test your api directly in your browser it works both on a published doc portal or directly inside the editor how to configure the try it! feature uses the https //developer mozilla org/en us/docs/web/api/fetch api/using fetch , so in order for it to work, your api imports need to have the following an absolute path url to your api (not just a path) add in your yml file an url as follows servers url example https //petstore3 swagger io/api/v3 (your actual url) authorization methods will be read from your api file and included in each api page cors disabled or enabled for the documentation domain, so the users can actually test your api how it works import your api files ( / /importing openapi swagger md or / / /integrations/github md ) \[optional] define / /importing openapi swagger md values in your openapi file this way, when you import your api all "default" values will be added to the code sample, and you can test your api immediately without the need to manually add values to params configure the api method with the test params after you update the parameters, the code sample on the right(or below, depending on how you set your view) will also update with the test params you added, providing you the code snippet of the request in several languages hit the try it! button and check out the response area, below the sample code