安裝完 postman,用 postman對接口進行調試
一.用postman post 請求接口 參數類型爲json
1.在地址欄裏輸入請求url: http://localhost:7236/SecondSaleWcfService.svc/NoCommisionInsert
2.選擇“POST”方式
3.設置Headers參數 Content-type 值 爲application/json
4.點擊"body",''raw''並設定爲JSON
5.點擊send發送即可
注意:如果接口接受參數的是一個類話
所傳的json參數 需要加多一層用類名包住{"myparam":json參數}: