IMPORT & EXPORT
Importing OpenAPI / Swagger

API Try It!

3min
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 fetch api , 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 docid\ c3jz iuwgeaeynhrj5d 7 or github docid\ pm3htf9icnqzcnfrqjql3 ) \[optional] define importing openapi / swagger docid\ c3jz iuwgeaeynhrj5d 7 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
🤔
Have a question?
Our super-smart AI,knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.