- 进入Extensions
- 点击Get More extensions
- 搜索 “REST Client Plugin”
- 点击安装 “Advanced REST Client”
- 安装以后,点击 “New Tab” ,将看到刚才安装的”Advanced REST Client”
- 点击运行”Advanced REST Client”,将提示下载数据。
会提示中国地区无法下载该数据(好像中文版本的Chrome可以下载,没有去确认)。下面列出数据的内容,保存为一个.txt文件然后根据提示导入即可。
- 数据导入成功以后,进入主界面,便可以测试REST Web Service了。
{
"requests":[
{"key":"Accept","desc":"Content-Types that are acceptable.","example":"Accept: text/plain"},
{"key":"Accept-Charset","desc":"Character sets that are acceptable","example":"Accept-Charset: utf-8"},
{"key":"Accept-Encoding","desc":"Acceptable encodings","example":"Accept-Encoding: <compress | gzip | deflate | identity>"},
{"key":"Accept-Language","desc":"Acceptable languages for response","example":"Accept-Language: en-US"},
{"key":"Authorization","desc":"Authentication credentials for HTTP authentication","example":"Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=="},
{"key":"Cache-Control","desc":"Used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain","example":"Cache-Control: no-cache"},
{"key":"Connection","desc":"What type of connection the user-agent would prefer","example":"Connection: close"},
{"key":"Cookie","desc":"an HTTP cookie previously sent by the server with Set-Cookie","example":"Cookie: $Version=1; Skin=new;"},
{"key":"Content-Length","desc":"The length of the request body in octets (8-bit bytes)","example":"Content-Length: 348"},
{"key":"Content-Type","desc":"The mime type of the body of the request (used with POST and PUT requests)","example":"Content-Type: application/x-www-form-urlencoded"},
{"key":"Date","desc":"The date and time that the message was sent","example":"Date: Tue, 15 Nov 1994 08:12:31 GMT"},
{"key":"Expect","desc":"Indicates that particular server behaviors are required by the client","example":"Expect: 100-continue"},
{"key":"From","desc":"The email address of the user making the request","example":"From: user@example.com"},
{"key":"Host","desc":"The domain name of the server (for virtual hosting), mandatory since HTTP/1.1","example":"Host: en.wikipedia.org"},
{"key":"If-Match","desc":"Only perform the action if the client supplied entity matches the same entity on the server. This is mainly for methods like PUT to only update a resource if it has not been modified since the user last updated it.","example":"If-Match: \"737060cd8c284d8af7ad3082f209582d\""},
{"key":"If-Modified-Since","desc":"Allows a 304 Not Modified to be returned if content is unchanged","example":"If-Modified-Since: Sat, 29 Oct 1994 19:43:31 GMT"},
{"key":"If-None-Match","desc":"Allows a 304 Not Modified to be returned if content is unchanged, see HTTP ETag","example":"If-None-Match: \"737060cd8c284d8af7ad3082f209582d\""},
{"key":"If-Range","desc":"If the entity is unchanged, send me the part(s) that I am missing; otherwise, send me the entire new entity","example":"If-Range: \"737060cd8c284d8af7ad3082f209582d\""},
{"key":"If-Unmodified-Since","desc":"Only send the response if the entity has not been modified since a specific time.","example":"If-Unmodified-Since: Sat, 29 Oct 1994 19:43:31 GMT"},
{"key":"Max-Forwards","desc":"Limit the number of times the message can be forwarded through proxies or gateways.","example":"Max-Forwards: 10"},
{"key":"Pragma","desc":"Implementation-specific headers that may have various effects anywhere along the request-response chain","example":"Pragma: no-cache"},
{"key":"Proxy-Authorization","desc":"Authorization credentials for connecting to a proxy.","example":"Proxy-Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=="},
{"key":"Range","desc&