put vs patch code example

Example 1: put vs patch

PUT vs PATCH 
	PATCH is used to update an existing entity with new information. 
    You can’t patch an entity that doesn’t exist.
    
    PUT is used to set an entity’s information completely. PUTting is 
    similar to POSTing, except that it will overwrite the entity 
    if already exists or create it otherwise.

Example 2: put vs patch

PUT vs PATCH 
	PATCH is used to update an existing entity with new information. 
    You can’t patch an entity that doesn’t exist.
    
    PUT is used to set an entity’s information completely. PUTting is 
    similar to POSTing, except that it will overwrite the entity 
    if already exists or create it otherwise.

Tags:

Misc Example