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

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
主站蜘蛛池模板: 武安市| 兴国县| 隆安县| 承德县| 潞西市| 云阳县| 北海市| 新龙县| 富顺县| 江城| 遂溪县| 阿克陶县| 岗巴县| 襄城县| 修文县| 侯马市| 阿拉善盟| 龙里县| 威宁| 舒城县| 兴山县| 肇东市| 汝阳县| 汉中市| 竹溪县| 黔江区| 图片| 金华市| 信丰县| 敦化市| 泰安市| 池州市| 措勤县| 炉霍县| 乌拉特后旗| 东宁县| 新闻| 久治县| 兴山县| 彰化市| 双峰县|