Skip to content

Describe the fact that first GET collectionOperation is used for resourceClass IRI #407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 24, 2018

Conversation

benjaminrau
Copy link

Users sometimes create custom collection operation and add it as first item of collectionOperation but dont do that with the intention to overwrite the default resource Class IRI. If the route path contains custom route params this results in an error though and debugging it is quite hard (need do make your way down into IriConverter to discover the custom route is used for router).

@benjaminrau
Copy link
Author

There might be different reasons for the issue users face - i have doubts my docs PR is sufficient. At least it doesnt match this issue: api-platform/core#830

@dunglas
Copy link
Member

dunglas commented Feb 24, 2018

Thanks @benjaminrau. I just remove the "for performance" part because it's not really the reason, it's just that this behavior sounds "logical" and intented to me.

@dunglas dunglas merged commit d1038d7 into api-platform:2.2 Feb 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants