正文

API http 5 verbs , AKA methods

(2024-05-03 16:08:15) 下一个

the four most commonly used HTTP methods (also referred to as verbs) are:

  1. GET: Used to retrieve data from the server. It should only retrieve data and should have no other effect on the server.

  2. 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.

  3. PUT: Used to update an existing resource on the server. The entire resource is replaced with the new representation provided in the request.

  4. 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.

  5. DELETE: THis method is commonly used to delete a resource from the server.

 

[ 打印 ]
阅读 ()评论 (0)
评论
目前还没有任何评论
登录后才可评论.