GET METHOD :
HTTP GET http://oms.com/orders/1
HTTP GET http://oms.com/orders
POST METHOD :
HTTP POST http://oms.com/orders/
HTTP POST http://oms.com/users/1/products
PUT METHOD :
HTTP PUT http://oms.com/orders/1/gg@gmail.com
HTTP PUT http://oms.com/users/2/orders/2
DELETE METHOD :
HTTP DELETE http://oms.com/orders/2
HTTP DELETE http://oms.com/users/3
PATCH METHOD :
PATCH is used to partial update on a resource not like PUT which is used for entire resource update.
HTTP PATCH http://oms.com/orders/1/users/2/hh@gmail.com
HTTP GET http://oms.com/orders/1
HTTP GET http://oms.com/orders
POST METHOD :
HTTP POST http://oms.com/orders/
HTTP POST http://oms.com/users/1/products
The difference between the POST and PUT APIs can be observed in request URIs. POST requests are made on resource collections, whereas PUT requests are made on an individual resource.
PUT METHOD :
HTTP PUT http://oms.com/orders/1/gg@gmail.com
HTTP PUT http://oms.com/users/2/orders/2
DELETE METHOD :
HTTP DELETE http://oms.com/orders/2
HTTP DELETE http://oms.com/users/3
PATCH METHOD :
PATCH is used to partial update on a resource not like PUT which is used for entire resource update.
HTTP PATCH http://oms.com/orders/1/users/2/hh@gmail.com