Skip to content

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

Merged
merged 2 commits into from
Jul 21, 2025
Merged

Added mention about OpenAPI #2836

merged 2 commits into from
Jul 21, 2025

Conversation

mnocon
Copy link
Contributor

@mnocon mnocon commented Jul 18, 2025

No description provided.

Copy link

Preview of modified files

Preview of modified Markdown:

@mnocon mnocon marked this pull request as ready for review July 18, 2025 10:28
Copy link
Contributor

@adriendupuis adriendupuis left a 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

Comment on lines 21 to 22
php bin/console ibexa:openapi --output=spec.json # JSON output
php bin/console ibexa:openapi --yaml --output=spec.yaml # YAML output
Copy link
Contributor

@adriendupuis adriendupuis Jul 18, 2025

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:

Suggested change
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.
Copy link
Contributor

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

Copy link
Contributor Author

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 👍

@mnocon mnocon merged commit d7c52ff into 5.0 Jul 21, 2025
6 of 7 checks passed
@mnocon mnocon deleted the open-api-command branch July 21, 2025 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants