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

PUT

The PUT method is used to update a mutable resource and must always include the resource locator. The PUT method calls are also idempotent in that multiple requests will not mutate the resource to a different state than the first call.

Request:

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

{"name": "Thomas", "weight": 7 }

Response:

HTTP/1.1 201 Created 
Content-Type: application/json
Content-Length: 0
主站蜘蛛池模板: 普宁市| 巨鹿县| 固镇县| 濉溪县| 措美县| 霍山县| 临城县| 衢州市| 和田市| 梁山县| 平利县| 临安市| 河池市| 河北区| 武宁县| 城固县| 廊坊市| 吉水县| 汝城县| 镇巴县| 灌云县| 玉山县| 翼城县| 镇江市| 颍上县| 内丘县| 晋州市| 门头沟区| 肇源县| 康保县| 阆中市| 辉县市| 唐河县| 项城市| 平谷区| 凯里市| 江都市| 双鸭山市| 巴林右旗| 浦县| 虹口区|