rest and post method code example
Example 1: http response methods
resource HTTP response method is made up of three
components:
Response Status Code ==> 200, 301, 404, 500
(these are the most common ones)
Response Header Fields ==> Date, Server, LastModified, Content-Type
Response Body ==> This is the data that comes
back to the client from the server.
Example 2: can we use post request instead of put for creating a resource
Yes we can. Because POST is super set
of all other HTTP methods except get.