天天看點

RESTClient安裝使用

1、在火狐浏覽器附加元件搜尋“RESTClient”,然後安裝,如下圖:

RESTClient安裝使用

2、GET的使用方式:

例子:URL:http://127.0.0.1:8000/api/get_guest_list/?eid=1&&phone=13511001100

RESTClient安裝使用

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安裝使用

繼續閱讀