|
Answer» The essential HTTP request types in REST are as follows: - GET - The GET method is used to retrieve data or resources from the server and allows read-only access to the data.
- 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.
- PUT - PUT is similar to POST, but it is used to update an existing resource by replacing its contents entirely.
- PATCH - PATCH is ALSO used to update an existing resource but unlike PUT, it modifies the existing resource.
- DELETE - The DELETE request is used to delete the resource from the server.
|