- 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.
推薦閱讀
- Vue.js 3.x快速入門
- Google Apps Script for Beginners
- Mastering Python Scripting for System Administrators
- iOS開發實戰:從零基礎到App Store上架
- Python進階編程:編寫更高效、優雅的Python代碼
- INSTANT MinGW Starter
- Learning SciPy for Numerical and Scientific Computing(Second Edition)
- SQL Server與JSP動態網站開發
- 智能手機APP UI設計與應用任務教程
- Visual C++從入門到精通(第2版)
- LabVIEW數據采集
- Python程序設計現代方法
- PHP程序設計經典300例
- 三步學Python
- 瘋狂Ajax講義(第3版)