- 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>
推薦閱讀
- 醫(yī)院消毒:消毒工作的重中之重
- 眼科手術(shù)器械清洗消毒滅菌技術(shù)操作規(guī)程
- 中西醫(yī)結(jié)合角膜病學(xué)
- 乳腺、甲狀腺介入性超聲學(xué)
- 斜視臨床診療
- 我的自閉癥:發(fā)現(xiàn)自己的隱形天賦
- 學(xué)習(xí)睡覺(jué)
- 實(shí)用皮膚鏡學(xué)
- 細(xì)針穿刺細(xì)胞病理學(xué)
- 腫瘤標(biāo)志物
- 口腔科常見及多發(fā)病就醫(yī)指南系列:口腔頜面部腫瘤就醫(yī)指南
- 神經(jīng)系統(tǒng)疾病與精神障礙
- 名老中醫(yī)治療優(yōu)勢(shì)病種診療方案選
- 深井效應(yīng)
- Building Serverless Microservices in Python