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

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.

主站蜘蛛池模板: 上高县| 清河县| 钟祥市| 隆回县| 昌黎县| 油尖旺区| 贡觉县| 汤原县| 醴陵市| 同德县| 搜索| 湘潭市| 龙山县| 潞城市| 远安县| 札达县| 合作市| 银川市| 阳高县| 陇川县| 广南县| 册亨县| 昭觉县| 华池县| 麦盖提县| 焉耆| 铜山县| 通化县| 磐安县| 丰镇市| 成安县| 陆良县| 青冈县| 彭阳县| 巨鹿县| 夹江县| 玉林市| 商都县| 同仁县| 安溪县| 报价|