In REST is POST or PUT best suited for upsert operation?
In REST is POST or PUT best suited for upsert operation?
I keep key-value storage in the server for the client. If the user send key “k1″ then I upsert it to the database. Is this considered POST or PUT.
Also I have another operation which remove all existing keys and add the new key, is this POST or PUT because it clear records and add new one.
Answer
If the user send key “k1″ then I upsert it to the database. Is this considered POST or PUT.
View On WordPress










