Ans:- HTTP request methods are-
1) GET: It is used to GET data from server at the specified resource.
2) POST: It is used to send the data to the API server to CREATE a resource.
3) PUT: This method the resource is first identified from the URL and if exists then it is updated otherwise a new resource is created. When the target resource exists it overwrites that resource with a complete new body. It is used to CREATE or UPDATE a resource.
4) PATCH:- This method is used to UPDATE an existing entity with new information. you can't patch an entity that doesn't exist.
5) DELETE: This method is used to DELETE the resource at specified URL.
1) GET: It is used to GET data from server at the specified resource.
2) POST: It is used to send the data to the API server to CREATE a resource.
3) PUT: This method the resource is first identified from the URL and if exists then it is updated otherwise a new resource is created. When the target resource exists it overwrites that resource with a complete new body. It is used to CREATE or UPDATE a resource.
4) PATCH:- This method is used to UPDATE an existing entity with new information. you can't patch an entity that doesn't exist.
5) DELETE: This method is used to DELETE the resource at specified URL.
No comments:
Post a Comment