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

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
主站蜘蛛池模板: 新晃| 汉中市| 南京市| 宁阳县| 泸州市| 汉中市| 谢通门县| 巴中市| 八宿县| 银川市| 基隆市| 乌拉特前旗| 陇南市| 深水埗区| 依安县| 朝阳市| 姜堰市| 万全县| 西城区| 西盟| 德钦县| 荔浦县| 唐山市| 三原县| 罗甸县| 洪湖市| 闽清县| 怀仁县| 南投市| 莱州市| 新竹县| 台州市| 曲靖市| 古交市| 武陟县| 玛曲县| 亳州市| 永济市| 灵寿县| 潜山县| 金川县|