sajad torkamani

View spec in default version

By default, your OpenAPI document should be at /api/docs.jsonopenapi. But you can confirm by running:

./bin/console debug:router | grep api_doc

You can configure the route in config/routes/api_platform.yaml.

View spec in different version

Set the version in the spec_version query string. For example:

https://localhost:8000/api/docs.jsonopenapi?spec_version=3

Related

Leave a comment

Your email address will not be published. Required fields are marked *