Position of id property for a CRUD route #1378
-
I can see you can set a custom name for the id property in a CRUD route. But is it possible to specify where the id property will be provided in the request rather than assuming it will always be at the end of the path? I have created a CRUD route with a path of users/:id/details, but when I make a GET users/23/details request it returns all users in the data bucket not just user 23. Many thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
No it's not possible. The crud route will create all the usual endpoints using your path as a starting point. You will end up with
|
Beta Was this translation helpful? Give feedback.
No it's not possible. The crud route will create all the usual endpoints using your path as a starting point. You will end up with
users/:id/details
,users/:id/details/:id
, etc.