RESTClient安装使用

1、在火狐浏览器附加组件搜索“RESTClient”,然后安装,如下图:

RESTClient安装使用

2、GET的使用方式:

例子:URL:http://127.0.0.1:8000/api/get_guest_list/?eid=1&&phone=13511001100RESTClient安装使用

3、POST的使用方式

(1)、点击Headers,选择Custom Header

(2)、输入Name:Content-Type   Value:application/x-www-form-urlencoded;charset=UTF-8

RESTClient安装使用

(3)、选择POST方式,输入Body

例子:URL:http://127.0.0.1:8000/api/add_guest/       

      Body:eid=1&realname=tom&phone=13711001123

RESTClient安装使用