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

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
主站蜘蛛池模板: 临沂市| 小金县| 喀喇沁旗| 拜城县| 桃园市| 泽库县| 贵南县| 连平县| 新建县| 鄂尔多斯市| 新安县| 常熟市| 浦北县| 栖霞市| 孝义市| 县级市| 洮南市| 西畴县| 望奎县| 卓尼县| 许昌县| 绥德县| 新巴尔虎右旗| 合阳县| 正宁县| 吉林省| 白银市| 南漳县| 长武县| 尼勒克县| 阿巴嘎旗| 青冈县| 穆棱市| 黄浦区| 绥中县| 巴彦县| 马边| 新干县| 平阳县| 北海市| 江门市|