- Building Microservices with Go
- Nic Jackson
- 114字
- 2021-07-15 17:28:07
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.
推薦閱讀
- FuelPHP Application Development Blueprints
- Python Data Analysis(Second Edition)
- PhpStorm Cookbook
- Python數據可視化之Matplotlib與Pyecharts實戰
- Apache Mesos Essentials
- Red Hat Enterprise Linux Troubleshooting Guide
- Swift語言實戰晉級
- Android應用開發實戰
- Python趣味編程與精彩實例
- 算法圖解
- Java EE架構設計與開發實踐
- 金融商業數據分析:基于Python和SAS
- 零基礎C語言學習筆記
- JavaScript Mobile Application Development
- Android項目實戰:博學谷