官术网_书友最值得收藏!

POST

The POST method is used to create a new resource in a collection or to execute a controller. It is typically a non-idempotent action, in that multiple posts to create an element in a collection that will create multiple elements not updated after the first call.

The POST method is always used when calling controllers as the actions of this is considered non-idempotent.

Request:

POST /v1/cats HTTP/1.1 
Content-Type: application/json
Content-Length: xxxx

{"name": "Felix", "weight": 5}

Response:

HTTP/1.1 201 Created 
Content-Type: application/json
Content-Length: 0
Location: /v1/cats/12343
主站蜘蛛池模板: 清涧县| 清涧县| 扎赉特旗| 罗定市| 建始县| 东方市| 枣庄市| 隆尧县| 嘉黎县| 五华县| 白城市| 宁蒗| 自贡市| 正阳县| 汪清县| 巍山| 康马县| 菏泽市| 怀柔区| 驻马店市| 营山县| 红桥区| 云南省| 盐城市| 东莞市| 全椒县| 临高县| 弥勒县| 中西区| 绥芬河市| 郸城县| 丰顺县| 洛川县| 庄河市| 乐平市| 玉山县| 永丰县| 健康| 天台县| 宜兴市| 讷河市|