标签:用法 splay use 就是 pos ica span code one
GET请求
curl http://localhost:8888/mock/api
POST请求(-X可以省略,-d默认就是POST参数)
curl -X POST -d ‘{"name":"api1","content":"api1 conent","method":"get","url":"/users"}‘ -H ‘Content-Type: application/json‘ http://localhost:8888/mock/api
PUT请求
curl -X PUT -d ‘{"name":"api1","content":"api1 conent","method":"get","url":"/users"}‘ -H ‘Content-Type: application/json‘ http://localhost:8888/mock/api
DELETE请求
curl -X DELETE -d ‘{"name":"api1","content":"api1 conent","method":"get","url":"/users"}‘ -H ‘Content-Type: application/json‘ http://localhost:8888/mock/api
标签:用法 splay use 就是 pos ica span code one
原文地址:https://www.cnblogs.com/mengff/p/12690893.html