-
Notifications
You must be signed in to change notification settings - Fork 85
Added mention about OpenAPI #2836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Preview of modified filesPreview of modified Markdown: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also mention the /api/ibexa/v2/doc
route to access (when in dev
mode?) to a live REST API Reference
php bin/console ibexa:openapi --output=spec.json # JSON output | ||
php bin/console ibexa:openapi --yaml --output=spec.yaml # YAML output |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-reading this, I would use the recommended name:
php bin/console ibexa:openapi --output=spec.json # JSON output | |
php bin/console ibexa:openapi --yaml --output=spec.yaml # YAML output | |
php bin/console ibexa:openapi --output=openapi.json # JSON output | |
php bin/console ibexa:openapi --yaml --output=openapi.yaml # YAML output |
Side note, I have always redirect the output to a file instead of using the --output
option or its -o
shortcut. The option probably ease command embedding/wrapping (like when you need to pass it to a container).
|
||
!!! info | ||
|
||
In [Symfony's `dev` environment](environments.md), you can access a REST API reference generated for your project by visiting the `/api/ibexa/v2/doc` route in the browser. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is when debug is turned on, which is what dev env does. I'm not sure we need to enter into this detail. For me it's OK written like that.
https://github.com/ibexa/rest/blob/main/src/bundle/Resources/config/routing.yml#L16
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd leave it as is as well 👍
No description provided.