3 ms·
REST is literally RPC. You are making a remote procedure call to a URL. GET this resource. DELETE this resource. It's the same thing. What is the difference be
by whalesalad 4y ago
REST is literally RPC. You are making a remote procedure call to a URL. GET this resource. DELETE this resource. It's the same thing.
What is the difference between remote.perform('some-action', { payload }) and remote.POST('some-action', payload) ?
- efdee 4y agoThere is no difference: neither of those are REST. Calling an URL with an action in the path name (rather than a resource name) is technically not done in REST -- the action is expressed through your HTTP verb. Using GET/POST/DELETE directly does not mean you're doing REST - there's a whole set of rules and assumptions that come with it.