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

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.

主站蜘蛛池模板: 桐乡市| 丰镇市| 台山市| 青阳县| 孝昌县| 龙口市| 开封市| 吉水县| 宿松县| 迁安市| 大化| 宝兴县| 荥阳市| 奉贤区| 太保市| 乐至县| 莲花县| 黑山县| 瓮安县| 栖霞市| 广河县| 北海市| 新乐市| 恩平市| 娄烦县| 柘城县| 富蕴县| 蒙阴县| 景洪市| 固安县| 伊宁市| 呼和浩特市| 阜新| 德惠市| 长垣县| 五华县| 台前县| 阳山县| 宜章县| 湟源县| 错那县|