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

DELETE

The DELETE verb is used when we want to remove a resource, generally we would pass the ID of the resource as part of the path rather than in the body of the request. This way, we have a consistent method for updating, deleting, and retrieving a document.

Request:

DELETE /v1/cats/12343 HTTP/1.1 
Content-Type: application/json
Content-Length: 0

Response:

HTTP/1.1 204 No Body 
Content-Type: application/json
Content-Length: 0
主站蜘蛛池模板: 行唐县| 壶关县| 左贡县| 建宁县| 内丘县| 桂阳县| 望都县| 南昌县| 商南县| 铜山县| 临沂市| 开封市| 连平县| 敦煌市| 铅山县| 威信县| 家居| 新蔡县| 江都市| 肥东县| 天长市| 宿州市| 尚志市| 红河县| 八宿县| 鹿邑县| 武夷山市| 长汀县| 门头沟区| 南汇区| 综艺| 贵定县| 彭山县| 东港市| 宁河县| 广东省| 宿松县| 昭觉县| 长泰县| 和田县| 宁津县|