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

CRUD function names

When designing great REST URIs we never use a CRUD function name as part of the URI, instead we use a HTTP verb. For example:

DELETE /cats/1234

We do not include the verb in the name of the method as this is specified by the HTTP verb, the following URIs would be considered an anti-pattern:

GET /deleteCat/1234 
DELETE /deleteCat/1234
POST /cats/1234/delete

When we look at HTTP verbs in the next section this will make more sense.

主站蜘蛛池模板: 桐乡市| 阳东县| 汽车| 西峡县| 韶关市| 泰和县| 祁阳县| 高青县| 宜兴市| 仙居县| 建宁县| 龙泉市| 凤冈县| 古蔺县| 中阳县| 峨眉山市| 娱乐| 安义县| 永济市| 和田市| 高阳县| 梁平县| 旌德县| 百色市| 乐亭县| 苍南县| 钟山县| SHOW| 三明市| 龙里县| 克拉玛依市| 普定县| 榕江县| 安岳县| 洮南市| 称多县| 吉林省| 侯马市| 齐河县| 周宁县| 双鸭山市|