Impossible to disable all collectionOperations when using XML
See original GitHub issueI want to disable all collectionOperations via resources.xml. Unfortunately I cannot specify an empty tag (i.e. <collectionOperations />
(analog to yml or annotations where collectionOperations encloses the list of all allowed operations) because in xml <collectionOperation>
is used.
If I provide one <collectionOperation>
only the provided operation is allowed.
If I provide no <collectionOperation>
all operations are allowed (which is the default).
So there is no way to disable all operations using xml.
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
[Question] Why can't I disable all operations #639 - GitHub
Unfortunatly, I am not able to disable the get item operation. According to the documentation, it's normal but is there a workaround? My...
Read more >Operations - API Platform
Enabling and Disabling Operations. If no operation is specified, all default CRUD operations are automatically registered. It is also possible - and recommended ......
Read more >Operations > API Platform - SymfonyCasts
Let's get to work customizing our API. A RESTful API is all about resources. We have one resource - our CheeseListing - and,...
Read more >How to build an API? A Developer's Guide to API Platform
In the article, I am presenting how to build an API in a simple, exemplary application using API Platform.
Read more >php - How to ask for additional GET parameters in an endpoint ...
Represents an entity for an item from the suggestion result set. * @package App\Entity * @ApiResource( * collectionOperations={ * "get"={ ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
There you go. I also submitted a PR to update the documentation.
I will give it a try tonight 😃