-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Description
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\PutIt 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
Labels
No labels