View OpenAPI spec for API in API Platform
31 May 2022 (Updated 22 January 2023)
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