|
|
|
|
|
by mi100hael
2899 days ago
|
|
I think of REST imposing a certain grammar that HTTP alone doesn't necessarily require. Remember, REST is resource-driven. - HTTP verbs are like normal verbs. They represent an action. - URLs represent the location of a resource or collection of resources. - Resources are like nouns. They represent what is being acted upon. As soon as you start assigning different actions based on different URLs, the HTTP verb no longer actually represents an action and the URL no longer points to a resource. |
|
A RESTful architecture needs an Uniform Interface, yes, but their it's doesn't have to be an "action" or anything specific. POST has a definition, and everyone handling the requests can rely on it. That fulfills the constraint.