the four most commonly used HTTP methods (also referred to as verbs) are: -
GET: Used to retrieve data from the server. It should only retrieve data and should have no other effect on the server. -
POST: Used to send data to the server to create a new resource. It can also be used to submit form data to the server. -
PUT: Used to update an existing resource on the server. The entire resource is replaced with the new representation provided in the request. -
PATCH: Used to update a part of an existing resource on the server. It allows you to send only the data that needs to be updated, rather than the entire resource. -
DELETE: THis method is commonly used to delete a resource from the server. |