sajad torkamani

View spec in default version

Assuming your API path is /api, the spec should available at /api/docs.json and /api/docs.yaml. You can also find the path by running ./bin/console debug:router and looking for the api_doc route.

Spec version is defined in config/packages/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