- Hands-On RESTful Web Services with TypeScript 3
- Biharck Muniz Araújo
- 128字
- 2021-07-02 12:19:20
Resource-based APIs
This category essentially states that each resource represents a specific collection of information regarding an entity or collection of entities of a given type. Resources are organized based on the information that's provided by the domain itself. In general, APIs use the REST style to perform operations that reflect the state of a given resource. From an enterprise perspective, exposed resources based on APIs allow for mirroring key business concepts, rather than silos.
Here, you can see examples where the resource is the user and its representation is related to login and logout actions:
/users/login
/users/logout
The following example shows information such as ratings, titles, and recommendations under a specific user ID. The same idea applies to items from a given order ID:
/users/<id>/ratings/title
/users/<id>/recommendations
/stores/orders/<id>/items
- 眼科急癥工作實用手冊
- Learning Ansible 2.7(Third Edition)
- 實用口腔正畸臨床技術(shù)圖譜
- 新編男性不育與不孕
- 乳腺癌綜合診治規(guī)范化手冊
- 顱內(nèi)血管疾病超聲圖解100例
- 現(xiàn)代口腔正畸技術(shù)與臨床思維(現(xiàn)代實用口腔醫(yī)學(xué)著譯叢書)
- Mastering Metasploit
- 紫外線皮膚科實戰(zhàn)口袋書
- 胎兒磁共振影像診斷學(xué)
- 結(jié)核病診斷與防治技術(shù)
- 呼吸與危重癥醫(yī)學(xué)2014-2015
- 寬型與窄型QRS波心動過速的診斷與鑒別診斷
- 常見老年病家庭康復(fù)操作指南
- 神經(jīng)系統(tǒng)疾病與精神障礙