Skip to content

Added mention about OpenAPI#2836

Merged
mnocon merged 2 commits into
5.0from
open-api-command
Jul 21, 2025
Merged

Added mention about OpenAPI#2836
mnocon merged 2 commits into
5.0from
open-api-command

Conversation

@mnocon

@mnocon mnocon commented Jul 18, 2025

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

Copy link
Copy Markdown

Preview of modified files

Preview of modified Markdown:

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

@adriendupuis adriendupuis left a comment

Copy link
Copy Markdown
Contributor

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

@adriendupuis adriendupuis Jul 18, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
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