Skip to content
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

API/documentation: Add OpenAPI JSON endpoint #7462

Closed
voltagex opened this issue May 4, 2024 · 0 comments · Fixed by #7464
Closed

API/documentation: Add OpenAPI JSON endpoint #7462

voltagex opened this issue May 4, 2024 · 0 comments · Fixed by #7464
Labels
Milestone

Comments

@voltagex
Copy link

voltagex commented May 4, 2024

Is your feature request related to a problem? Please describe.
If there's an OpenAPI 3 JSON specification available, I can automatically generate part of a Wallabag client (or even an API compatible server!)

It's supported by the Nelmio library you're using, but not turned on.

Describe the solution you'd like
A clear and concise description of what you want to happen.
It looks like https://symfony.com/bundles/NelmioApiDocBundle/current/index.html#installation says that you need something as "simple" as

app.swagger:
    path: /api/doc.json
    methods: GET
    defaults: { _controller: nelmio_api_doc.controller.swagger }

next to https://github.com/wallabag/wallabag/blob/master/app/config/routing.yml#L5 but I don't know how to do it with the syntax you're using.

Describe alternatives you've considered
Learning enough about Symphony and hacking routing.yaml myself

voltagex pushed a commit to voltagex-forks/wallabag that referenced this issue May 5, 2024
@j0k3r j0k3r added this to the 2.7.0 milestone May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants