2 ms·
I think perhaps we're talking about a different aspect of REST. What I find annoying is people objecting to "POST /actions/subscribe" (with the params in the p
by paul 18y ago
I think perhaps we're talking about a different aspect of REST.
What I find annoying is people objecting to "POST /actions/subscribe" (with the params in the post body) because it's "non-RESTful" -- the url is a verb and REST demands a noun.
- gaika 18y agoWhat's wrong with creating a subscription object and letting people manipulate it the usual REST way via /subscription/<id>? That way you can list your subscriptions, modify, delete in a very consistent way, without a need for "POST /actions/modify_subscription" and such.
- bct 18y agoREST doesn't demand a noun. If they all have the same code backing them, there's no functional difference between: POST /actions/subscribe and POST /subscriptions and POST /abcdef1234567890 The shape of a URL has nothing to do with REST. However, if a lot of your URLs contain verbs it suggests that you aren't doing REST. It's a design odor.