????2. REST Console ???????
????1. Options
????????????????????????????????????????????????????棩
?????????????????? Help Lines?? ?????????????? REST Console??????????????????? http ?? ?????????е?????????????????
??????????£????????? ?? http://www.cnblogs.com/ganiks/
????2. Target
?????????????????
Target
Request URI ?? ?????????? ????
Request Method : PUT POST ...
Request Timeout
Accept
Accept: (??????????type??????content-type)
*/*(???????????)
application/atom+xml
test/plain
application/javascript
application/json
application/http
application/pdf
application/rar
... ...
Acceptable Language
????3. Body
????Content Headers
????Content-Type: mime type of the request body(??PUT??POST??????????)
????application/x-www-form-urlencoded
????text/plain
????multipart/form-data
??????3?????? POSTMAN??????3?????????к????????? REST Console ?е?????????????????????????????е??????
????Acceptable Encoding?? ???? utf-8???ο? HTTP compression??
????Content-MD5: ???? Q2hlY2sgSW50ZWdyaXR5IQ==
????Request Payload
????RAW BODY?? image=ccccccccc
????Request Params: key=>value
????Attachements: upload files
????Custom Headers
????Request Parameters
??????????????
Accept:*/*
Accept-Encoding:gzip??deflate??sdch
Accept-Language:zh-CN??zh;q=0.8??en-US;q=0.6??en;q=0.4
Authorization:Basic MTAwLXRva2VuOg==
Cache-Control:no-cache
Connection:keep-alive
Content-Length:20
Content-Type:text/plain;charset=UTF-8
Host:192.168.4.126
Origin:chrome-extension://fdmmgilgnpjigdojojpjoooidkmcomcm
User-Agent:Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML?? like Gecko) Chrome/36.0.1985.125 Safari/537.36
????4. Authorization
????Basic Auth
????Setup oAuth
????Refresh oAuth
????5. Headers
????Headers
????Max-Forwards: 10 (?????????????? ??????????????)
????Range
????From: ????????????????????
????Warning
????Pragma
????...
????Cache ????????????
????Common non-standard request headers
????6. Response
Response Body: ??? JSON XML HTML CSS ????????
{
"id": "162"??
"image": "cccccccc"??
"link": "dd2"??
"show_date": "0000-00-00"??
"state": 1??
"show_order": 0
}
RAW Body
{"id":"162"??"image":"cccccccc"??"link":"dd2"??"show_date":"0000-00-00"??"state":1??"show_order":0}
Response Headers
Status Code: 200
Date: Fri?? 01 Aug 2014 06:39:00 GMT
Server: Apache/2.2.9 (Win32) PHP/5.4.30 mod_fcgid/2.3.6
Connection: Keep-Alive
X-Powered-By: PHP/5.4.30
Content-Length: 94
Keep-Alive: timeout=5?? max=100
Content-Type: application/json; charset=UTF-8
Response Preview
Request Body
Request Url: http://192.168.4.126/news/162
Request Method: PUT
Status Code: 200
Params: {}
Request Headers
Content-Type: multipart/form-data
Authorization: Basic MTAwLXRva2VuOg==
Accept: */*
Connection: keep-alive
Origin: chrome-extension: //rest-console-id
User-Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML?? like Gecko) Chrome/36.0.1985.125 Safari/537.36
????3. http?????Accept????
???????????????????????? Accept ?? Content-Type
???????????????????
????????????????????????? */*?? POSTMAN ?? RESTConsole ???????????? application/json???????????? Headers:Accept ??????????·??????? json?????
?????????????????з??????????? application/xml ?????
??????????? type ?????head body ????? ????
???????????????????????? REST Console ??????????? 2. Target 3. Body ?С?
?????? yii ????????? rest api ????? xml ?? JSON?? yii ????? ????? head ?? Accept ??????????????????????
??????????? ??chrome ?п????????????