官术网_书友最值得收藏!

HATEOAS

HATEOAS is a way that the client can interact with the response by navigating within it through the hierarchy in order to get complementary information.

For example, here the client makes a GET call to the order URI :

GET https://<HOST>/orders/1234

The response comes with a navigation link to the items within the 1234 order, as in the following code block:

{
id : 1234,
any-other-json-fields...,
links": [
{
"href": "1234/items",
"rel": "items",
"type" : "GET"
}
]
}

What happens here is that the link fields allow the client to navigate until 1234/items in order to see all the items that belong to the 1234 order.

主站蜘蛛池模板: 卓尼县| 威远县| 巢湖市| 琼结县| 福海县| 奈曼旗| 平邑县| 监利县| 枝江市| 东港市| 清河县| 酉阳| 康乐县| 永川市| 慈利县| 黄冈市| 达日县| 荆门市| 海城市| 策勒县| 张家港市| 兰州市| 沂南县| 三台县| 泽州县| 商城县| 上思县| 乐东| 天祝| 龙井市| 胶州市| 平凉市| 马公市| 鄂尔多斯市| 榕江县| 谢通门县| 大同县| 萨嘎县| 巴南区| 赣州市| 科技|