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

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
主站蜘蛛池模板: 开原市| 内乡县| 城口县| 新昌县| 浠水县| 白朗县| 万全县| 平谷区| 蓬莱市| 周口市| 福泉市| 崇义县| 平阴县| 方正县| 云梦县| 永清县| 赞皇县| 涟水县| 龙岩市| 莫力| 大竹县| 合肥市| 仙居县| 乐清市| 水富县| 曲麻莱县| 越西县| 舒城县| 甘洛县| 亚东县| 张家川| 临高县| 盐边县| 正镶白旗| 永泰县| 泗水县| 习水县| 弋阳县| 会宁县| 海兴县| 玛多县|