REST (Representational State Transfer) is an architectural style for designing networked applications. It relies on a stateless, client-server, cacheable communications protocol -- the HTTP protocol. The main HTTP methods used in REST are:
GET: This method is used to retrieve data from a server at the specified resource.
PUT: This method is used to update or create a resource at the specified URL.
DELETE: This method is used to remove a specified resource.
The other options are not standard HTTP methods used in REST:
CREATE: This is not a standard HTTP method. The equivalent standard method for creating resources is POST.
REPLACE: This is not a standard HTTP method. The equivalent standard methods for replacing resources are PUT or PATCH.
References:
RESTful Web Services - HTTP Methods
MDN Web Docs on HTTP Methods
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit