1.

Explain The Purpose Of Each Of The Http Request Types When Used With A Restful Web Service?

Answer»

The PURPOSE of each of the HTTP request types when used with a RESTful web service is as follows:

GET: Retrieves DATA from the server (should only retrieve data and should have no other effect).

POST: Sends data to the server for a NEW entity. It is often used when uploading a file or submitting a completed web form.

PUT: SIMILAR to POST, but used to replace an existing entity.

PATCH: Similar to PUT, but used to update only certain fields WITHIN an existing entity.

The purpose of each of the HTTP request types when used with a RESTful web service is as follows:

GET: Retrieves data from the server (should only retrieve data and should have no other effect).

POST: Sends data to the server for a new entity. It is often used when uploading a file or submitting a completed web form.

PUT: Similar to POST, but used to replace an existing entity.

PATCH: Similar to PUT, but used to update only certain fields within an existing entity.



Discussion

No Comment Found