Question: what is the difference between put and post in rest?
Answer: The POST method is used to request that the origin server accept the entity enclosed in the request as a new subordinate of the resource identified by the Request-URI in the Request-Line. ... PUT replaces the resource in its entirety. Use PATCH if request updates part of the resource.