I've encountered API that tell as being "restful" but then I see resources with verbs instead of reserving those said verbs to the
Here's some (paths shortened so only the relevant method and path parts are shown):
POST /things/prepend(Adding to the beginning of the ordered collection)
Why doesn't it make sense to do instead:
EDIT /things/84(I prefer the first one)
I've only been told again and again that this is not restful because it must only use GET, POST, PUT, DELETE and PATCH to remain restful.
What logical explanation exists for having verbs in the path section of the URL for restful API?
- I can't show you real life examples so I won't be pointing fingers at anybody.
- As for proxy limitations excuse I've been experiencing. It was valid while no workaround existed. Nowadays, most modern frameworks have mechanisms to allow method override using query variables or headers (with de-facto standards, even).