View OpenAPI spec for API in API Platform
31 May 2022 (Updated 1 June 2025)
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
Tagged:
API Platform recipes
Thanks for your comment 🙏. Once it's approved, it will appear here.
Leave a comment