Skip to content

Invalid keys in doc #2221

@thlaure

Description

@thlaure

Some keys in the ./config/packages/api_platform.yaml are not valid :

  • api_platform.defaults.item_operations
  • api_platform.defaults.collection_operations

When I run php bin/console config:dump-reference api_platform, I just see api_platform.defaults.operations.

When I set the api_platform.defaults.operations key, I nee to specify the following values when I want to remove DELETE routes from the available routes in the Swagger:

api_platform:
    ...
    defaults:
        ...
        operations:
            - ApiPlatform\Metadata\GetCollection
            - ApiPlatform\Metadata\Get
            - ApiPlatform\Metadata\Post
            - ApiPlatform\Metadata\Put

It seems that nothing is specified in the documentation to enable or disable routes globally.

Here is the related doc page: https://api-platform.com/docs/core/configuration/
Related API Platform version: 4.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions