linux 使用 curl调接口

post请求

multipart/form-data

curl http://127.0.0.1:8710/member/api/v1/spammers/list -F nickName= -F page=0 -F size=10

 

application/json

curl http://127.0.0.1:7080/qams/bg/question/noAuthList -X POST -d '{"pageNo":1,"pageSize":10,"keyword":"","districtId":"22f3c611-b0e7-4f9e-b108-ac0f079b1081","approvedStatus":"1","questionType":"1","startTime":null,"endTime":null}' --header "Content-Type: application/json"

 

带上token

curl -H "token:xxxxxxxxxxx" http://127.0.0.1:8640/entering/api/admin/entering/typeList?page=0&size=10

 

posted @ 2021-08-30 14:02  FY丶  阅读(336)  评论(0)    收藏  举报