We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85d6897 commit 607c080Copy full SHA for 607c080
1 file changed
core/openapi.md
@@ -512,8 +512,11 @@ Manually register the Swagger UI controller:
512
```yaml
513
# app/config/routes.yaml
514
api_doc:
515
- path: /api_documentation
+ path: /api_documentation.{_format}
516
controller: api_platform.swagger_ui.action
517
+ methods: ['HEAD', 'GET']
518
+ defaults:
519
+ _format: html
520
```
521
522
Change `/api_documentation` to the URI you wish Swagger UI to be accessible on.
0 commit comments