what is the difference between put and post in rest?
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.