API Specification
Here, we cover how to write an OpenAPI specification (aka Swagger specification) file in YAML as well as how to upload the specification file (.yaml file) on Ainize Project Page. The Swagger file enables you to test if Ainized endpoints are correctly working. Furthermore, it also provides how-to instructions to the API users.
Here is a template yaml file for Ainized projects:
There are several tools for debugging OpenAPI specification:
How to create and publish a Swagger file.
Deploy your Github project
At this point, you can get the server endpoint. Modify swagger.yaml to include this address.
2. Create a Swagger file (swagger.yaml file)
3. Go to the API tab in your Ainized project's page
4. Upload a Swagger file
5. Now you can click Try it out
and Execute
Last updated