HTTP METHODS
HTTP METHODS GET Method: The HTTP GET method is used to read/ retrieve a representation of a resource. In the happy path ( non-error), GET returns a representation in XML or JSON and an HTTP response code of 200 (OK). In an error case, it most often returns a 404 (NOT FOUND) or 400 (BAD REQUEST). POST Method: The POST verb is most-often utilized to create new resources. In other words, when creating a new resource, POST to the parent and the service takes care of associating the new resource with the parent, assigning an ID (new resource URI), etc. On successful creation, return HTTP status 201, returning a Location header with a link to the newly-created resource with the 201 HTTP status.In an error case 404 (Not Found), 409 (Conflict) if resource already exists. PUT Method: PUT is most-often utilized for update capabilities, PUT-ing to a known resource URI with the request body containing the newly-updated representation of the original resource. On successful update, return 20...