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

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
主站蜘蛛池模板: 渭南市| 丰镇市| 灌阳县| 绥中县| 三河市| 安多县| 南江县| 罗源县| 家居| 团风县| 永顺县| 南投市| 凤阳县| 历史| 利川市| 镇赉县| 贵阳市| 新余市| 西藏| 康保县| 来凤县| 海城市| 福贡县| 页游| 华坪县| 正镶白旗| 雅江县| 留坝县| 乌鲁木齐市| 英山县| 师宗县| 五家渠市| 中阳县| 鹿邑县| 天镇县| 通山县| 健康| 台北市| 靖边县| 正阳县| 铁岭市|