- Hands-On RESTful Web Services with TypeScript 3
- Biharck Muniz Araújo
- 98字
- 2021-07-02 12:19:17
Resource-based
One of the key things when a resource is being modeled is the URI definition. The URI is what defines a resource as unique. This representation is what will be returned for clients. If you decided to perform GET to the offer URI, the resource that returns should be a resource representing an order containing the ID order, creation date, and so on. The representation should be in JSON or XML.
Here is a JSON example:
{
id : 1234,
creation-date : "1937-01-01T12:00:27.87+00:20",
any-other-json-fields...
}
Here is an XML example:
<order>
<id>1234</id>
<creation-date>1937-01-01T12:00:27.87+00:20</creation-date>
any-other-xml-fields
</order>
推薦閱讀
- 同仁眼整形眼眶病診療手冊(cè)
- 慢性胃炎百家百方
- 醫(yī)院消毒:消毒工作的重中之重
- 實(shí)用甲狀腺疾病診療學(xué)
- 謠言背后的健康真相
- 運(yùn)動(dòng)學(xué)(第二版)
- 梅毒實(shí)驗(yàn)室診斷技術(shù)與質(zhì)量控制
- 實(shí)用胃腸病臨床手冊(cè)
- 臨床心理學(xué)
- 重癥肌無(wú)力中西醫(yī)結(jié)合臨床實(shí)踐
- Python Machine Learning Cookbook(Second Edition)
- 常見(jiàn)惡性腫瘤治療原則與實(shí)施方案
- 臍帶間充質(zhì)干細(xì)胞轉(zhuǎn)化醫(yī)學(xué)
- 腫瘤與生殖
- 中國(guó)臨床腫瘤學(xué)年度研究進(jìn)展2016