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

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
主站蜘蛛池模板: 杭州市| 广饶县| 平定县| 汉源县| 陆丰市| 榆中县| 通道| 双江| 乐都县| 从江县| 泸溪县| 海丰县| 扶沟县| 阜新市| 涪陵区| 夏津县| 乌拉特前旗| 绍兴县| 游戏| 贵港市| 五大连池市| 安义县| 平谷区| 东源县| 司法| 天等县| 徐汇区| 汉川市| 新绛县| 白沙| 瑞安市| 威远县| 天峻县| 柳河县| 镇平县| 黎平县| 娄底市| 黑水县| 贡觉县| 平乐县| 吉木萨尔县|