1.

What are the different HTTP request types in REST?

Answer»

The essential HTTP request types in REST are as follows:

  1. GET - The GET method is used to retrieve data or resources from the server and allows read-only access to the data.
  2. POST - The POST method is used for creating a NEW resource. It is often used while uploading a file or submitting a completed web form.
  3. PUT - PUT is similar to POST, but it is used to update an existing resource by replacing its contents entirely.  
  4. PATCH - PATCH is ALSO used to update an existing resource but unlike PUT, it modifies the existing resource.  
  5. DELETE - The DELETE request is used to delete the resource from the server.


Discussion

No Comment Found