1. 程式人生 > >用postman測試post介面的設定步驟,引數為json

用postman測試post介面的設定步驟,引數為json

在位址列裡輸入請求url:http://127.0.0.1:8081/getmoney

選擇“POST”方式,

在“headers”新增key:Content-Type  , value:application/json

點選"body",''raw''並設定為JSON

新增:

{"userid": 1}

點選send傳送即可