|
|
|
|
|
by dozzie
3960 days ago
|
|
> [...] GET, POST and DELETE will cover 99% of your requirements. Hardly. There's no search in these. You end up putting your query either to
URL, which is hideous, or to request body, which is awful. The only HTTP verb that can sensibly carry anything beside "create",
"destroy", and "retrieve" commands is POST. This equals to operation
"manipulate". And guess what? Plenty of remote interfaces use at the same
time many operations that can be called "manipulate". Sticking to merely HTTP
verbs is way, way too constraining. |
|
We'll just have to disagree there.
In any case, if you find REST restrictive, fine, go ahead and do your RPC. Just don't try to tell me that it's anything other than RPC, with all the problems and warts we all know.
The value in REST is exactly that it forces you to simplify your interface down to basic verbs that everyone can understand and work with; if you can't do that, if additional complexity is unavoidable, then REST is not for you and you should be aware that your application is now officially complex, maybe too complex to be a public API.
From that point of view, something like SOAP is a perfectly respectable protocol and you should use that instead.