HTTP methods 与 RESTful API

时间:2020-07-13 13:47:45   收藏:0   阅读:88
Note
GET, primarily used to select resources.
Other options for an API method include:
POST, primarily used to create child resources.
PUT, primarily used to update existing resources (and, although not recommended, can be used to create child resources).
DELETE, used to delete resources.
PATCH, used to update resources.
HEAD, primarily used in testing scenarios. It is the same as GET but does not return the resource representation.
OPTIONS, which can be used by callers to get information about available communication options for the target service.
The method created is not yet integrated with the back end. The next step sets this up.

目录:

  1. RESTful 是什么
  2. JSON-server (提供 RESTful API 接口 + JSON 返回数据)
  3. 如何选择 REST 方法
  4. HTTP verbs / method (安全 | 幂等)
  5. HTTP POST V.S. PUT
  6. REST POST | PUT | PATCH

 


JSON-Server





 

http://www.cnblogs.com/xhz-dalalala/p/5791631.html

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!