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

The manipulation of resources using representations

Following the happy path, when the client makes a request to the server, the server responds with a resource that represents the current state of its resource. This resource can be manipulated by the client. The client can request what kind it desires for the representation such as JSON, XML, or plain text.

When the client needs to specify the representation, the HTTP Accept header is used.

Here you can see an example in plain text:

GET https://<HOST>/orders/12345
Accept: text/plain

The next one is in JSON format:

GET https://<HOST>/orders/12345
Accept: application/json
主站蜘蛛池模板: 长沙县| 泸水县| 丰镇市| 巫溪县| 南康市| 富宁县| 紫阳县| 平江县| 榆树市| 麟游县| 修水县| 乌恰县| 永新县| 历史| 弥渡县| 大埔县| 城市| 都昌县| 前郭尔| 维西| 汉源县| 松溪县| 翼城县| 阳山县| 江门市| 柳河县| 烟台市| 龙胜| 常德市| 黄浦区| 嘉荫县| 万载县| 旬阳县| 曲靖市| 海门市| 红原县| 双城市| 昌吉市| 福州市| 梨树县| 荔波县|