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

Store

A store is a client-managed resource repository, it allows the client to add, retrieve, and delete resources. Unlike a collection, a store will never generate a new URI it will use the one specified by the client. Take a look at the following example that would add a new cat to our store:

PUT /cats/2 

This would add a new cat to the store with an ID of 2, if we had posted the new cat omitting the ID to a collection the response would need to include a reference to the newly defined document so we could later interact with it. Like controllers we should use a plural noun for store names.

主站蜘蛛池模板: 彰化县| 临泉县| 河北省| 东乡族自治县| 丰县| 江城| 宁乡县| 报价| 武乡县| 玛纳斯县| 宜都市| 屯留县| 黔西县| 武平县| 柏乡县| 鹿邑县| 化隆| 湘潭市| 化隆| 罗山县| 吕梁市| 永平县| 通海县| 饶河县| 仙桃市| 黎平县| 绥芬河市| 绵阳市| 竹北市| 龙岩市| 南江县| 简阳市| 苍溪县| 碌曲县| 宣汉县| 苍梧县| 万宁市| SHOW| 禄丰县| 汶上县| 莆田市|