Skip to content

[Route Names] API Route Naming Convention Changed from 2.6 to 3.0 #5231

@gnito-org

Description

@gnito-org

API Platform version(s) affected: 3.0.x

Description

In 2.6, the API routes for resource Book were named:

api_books_get_collection
api_books_post_collection
api_books_get_item
api_books_put_item
api_books_delete_item

In 3.0, the same routes are now named:

 _api_/book/{id}{._format}_get
 _api_/book{._format}_get_collection
 _api_/book{._format}_post
 _api_/book/{id}{._format}_put
 _api_/book/{id}{._format}_delete

Is this a bug, or is it an intentional change?

The new routes names are super ugly. Is there a setting to change them to something more palatable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions