question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Impossible to disable all collectionOperations when using XML

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
sawmuraicommented, Mar 15, 2017

There you go. I also submitted a PR to update the documentation.

1reaction
sawmuraicommented, Mar 15, 2017

I will give it a try tonight 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found