- 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.
推薦閱讀
- Java多線程編程實戰指南:設計模式篇(第2版)
- Node.js Design Patterns
- Java EE 7 Development with NetBeans 8
- C語言程序設計
- 計算機應用基礎實踐教程
- HTML5 APP開發從入門到精通(微課精編版)
- OpenMP核心技術指南
- Extending Unity with Editor Scripting
- Android Development Tools for Eclipse
- Python Machine Learning Blueprints:Intuitive data projects you can relate to
- Application Development with Parse using iOS SDK
- 從零開始學UI:概念解析、實戰提高、突破規則
- 寫給青少年的人工智能(Python版·微課視頻版)
- Developing Java Applications with Spring and Spring Boot
- 優化驅動的設計方法