comiventor
comiventor

Reputation: 4142

PUT vs POST for initiating synch up

If resource A needs to synch up with resource B, what kind of REST method will you choose to do that, POST/PUT and why?

Note that the request is only going to initiate the synch operation.

Upvotes: 1

Views: 100

Answers (1)

user2183539
user2183539

Reputation: 266

PUT likely to create a new object. The POST operation is very generic and no specific meaning can be attached to it, so it can be. But i think you must use PATCH. http://restcookbook.com/HTTP%20Methods/patch/

Upvotes: 1

Related Questions