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

Changing Rest\Get to attributes leads to invalid URL #2356

Open
jneidel opened this issue Oct 14, 2024 · 0 comments
Open

Changing Rest\Get to attributes leads to invalid URL #2356

jneidel opened this issue Oct 14, 2024 · 0 comments
Labels

Comments

@jneidel
Copy link

jneidel commented Oct 14, 2024

Version

v4.32.0

Description

Refactoring FOS\RestBundle\Controller\Annotations to FOS\RestBundle\Controller\Attributes leads to invalid URLs being displayed in the api documentation.

advertising/tags -> advertisingtags (/ was omitted)

JSON OpenApi

use FOS\RestBundle\Controller\Annotations as RestAnnotation;
@RestAnnotation\Get("/advertising/tags")

=>

"/api/{version}/advertising/tags" in apidoc:dump
use FOS\RestBundle\Controller\Attributes as RestAttrib;
#[RestAttrib\Get("/advertising/tags")]

=>

"/api/{version}/advertisingtags" in apidoc:dump

Additional context

Setting

#[OA\Get( path: "/advertising/tags", …

does not change the outcome.

@jneidel jneidel added the bug label Oct 14, 2024
@jneidel jneidel changed the title Chaging Rest\Get to attributes leads to invalid URLs Chaging Rest\Get to attributes leads to invalid URL Oct 14, 2024
@jneidel jneidel changed the title Chaging Rest\Get to attributes leads to invalid URL Changing Rest\Get to attributes leads to invalid URL Oct 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

No branches or pull requests

1 participant