Weird behavior when declaring route in an entity #2398
Unanswered
JoDarma-lp
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Operations have a |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I realized after days of bugging and researching that the order of the routes (new Get,new Post...) matters.
For example :
If I put in this order :
It's return me user object with that :
If I put in this order :
It's return me user object with that :
This also causes other problems like the error "unable to generate IRI ...."
Is this the normal expected behavior?
And if it is why it's not explicitly write in the api-platform documentation ?
IF THE DECLARATION POSITION OF A ROUTE IN THE ENTITY IS IMPORTANT IT SHOULD BE SAYED, MOREOVER THIS BEHAVIOR IS TOTALLY ABBERANT IN MY OPINION.
Beta Was this translation helpful? Give feedback.
All reactions