sajad torkamani

View spec in default version

By default, your OpenAPI document should be at /v1/docs.json. 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.json?spec_version=2

Related