Skip to content

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

Open
@jneidel

Description

@jneidel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions