docs
docs copied to clipboard
Mandatory operations
In the documentation about operations there are a couple of nice tables that lists the built-in CRUD operations. These tables shows that GET for both item and collection is mandatory.
I currently have a couple of ApiResource where I have disabled GET for collectionOperations and it works without any problems.
Example
#[ApiResource(
collectionOperations: [], // works fine
itemOperations: ['get']
)]
class MyClass
{
// ...
}
I'm thinking maybe the GET for collection operations should be changed from Yes -> No since it is not mandatory to run your application? Or am I missing something?
Edit: I just noticed that I also have an ApiResource that does not have the built-in GET for collectionOperations AND itemOperations which means that none of them are mandatory?