Salesqueen Software Solution

Download Free Estimation Now Click Here
Notifications
Clear all

Describe the different kinds of HTTP requests supported by RESTful Web services.

3 Posts
3 Users
0 Reactions
138 Views
Posts: 461
Topic starter
(@dinesha-g)
Reputable Member
Joined: 2 years ago

HTTP requests supported by RESTful Web services

2 Replies
Posts: 52
(@chitravarsha15)
Trusted Member
Joined: 2 years ago

GET is a type of request that retrieves data from the server.

POST is a type of request used to submit fresh data form details and then upload a file.

PUT is a request similar to POST but applied for updating an existing entity.

DELETE is a request similar to PUT and is used to delete the resource from the server.

TRACE is used to validate content received along with the network during a request.

HEAD is similar to GET but receives response headers during the request.

 

 

 

Reply
Posts: 173
(@princy)
Estimable Member
Joined: 2 years ago

In a RESTful system, HTTP verbs are typically used as follows:

POST: Make a resource instance new. delivering typically an Id that represents the special identification for the newly generated resource

GET: Retrieve a particular resource, typically by Id.

PUT: Update or substitute a particular resource, typically by Id. In a RESTful system, this verb's behaviour should typically be idempotent.

DELETE: Used to delete or inactively mark a resource. A subsequent GET on the targer resource will result in a "not found" error in either scenario.

OPTIONS: Usually used to establish different etags and get ready for caching, this is for your pre-flight requests for server/client content negotiation.

Then, but not least…

PATCH: The HTTP API system's verb with the lowest usage rate. used to update or alter a resource; however, because the PUT method is idempotent, it is frequently chosen over the PATCH technique because it is frequently regarded as "safer" in many designs.

Reply
Share: