- Building RESTful Web Services with PHP 7
- Haafiz Waheed ud din Ahmad
- 223字
- 2021-07-03 00:02:16
Hypermedia as the engine of application state (HATEOAS)
This constraint states that, based on what a server provides to a REST client, the REST client should be able to discover all available actions and resources. In other words, it states that if a client knows an entry point then from that first endpoint, it should be able to discover other relevant endpoints related to that resource. For example, if a client goes to a resource's listing endpoint, that should include links to resources in that listing. And if there is pagination or limit being applied, it should have links to go to the rest of the items in the listing.
If a client has created a new resource, the new resource's link should be included in response as well which can be used for read, update, and delete operations on that resource by using different HTTP verbs. For operations other than typical CRUD, it will obviously have more URLs, so URLs for those operations should also be in the response, so that all endpoints related to the resource can be discoverable from one entry point.
Due to HATEOAS, an endpoint exposes links to related endpoints. This reduces the need of a thorough API documentation, although not completely, but one does not need to see the API documentation for the links already being exposed.
- C++ Primer習題集(第5版)
- HTML5+CSS3基礎開發教程(第2版)
- 我的第一本算法書
- Visual Basic程序設計與應用實踐教程
- Mastering Apache Spark 2.x(Second Edition)
- 零基礎學Python網絡爬蟲案例實戰全流程詳解(入門與提高篇)
- Android開發:從0到1 (清華開發者書庫)
- BIM概論及Revit精講
- Learning Apache Karaf
- Instant PHP Web Scraping
- 零基礎學Python編程(少兒趣味版)
- 軟件體系結構
- Python數據可視化之美:專業圖表繪制指南(全彩)
- Angular Design Patterns
- jQuery Mobile Web Development Essentials(Second Edition)