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

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.

主站蜘蛛池模板: 广德县| 莱阳市| 洞头县| 咸丰县| 萍乡市| 长岛县| 磐石市| 长垣县| 花莲市| 察哈| 济南市| 新营市| 广饶县| 江永县| 乐都县| 正镶白旗| 平利县| 兴仁县| 莱州市| 松潘县| 报价| 醴陵市| 镇雄县| 剑阁县| 永宁县| 玉龙| 扶风县| 民乐县| 辛集市| 墨竹工卡县| 遂平县| 安化县| 东阿县| 黑龙江省| 苏尼特左旗| 泉州市| 德江县| 万盛区| 东平县| 兴隆县| 盐城市|