linux中curl使用

2020-09-23  本文已影响0人  楼兰King

curl -i -H "Content-Type: application/json" -X POST -d "{"title":"Read a book1"}" http://localhost:8000/hyl/api/v1.0/tasks

curl -i -H "Content-Type: application/json" -X PUT -d "{"done":true}" http://localhost:8000/hyl/api/v1.0/tasks/2

curl -i -H "Content-Type: application/json" -X DELETE -d "{"done":true}" http://localhost:8000/hyl/api/v1.0/tasks/2

curl -i -H "Content-Type: application/json" -X DELETE -d "{"done":true}" http://localhost:8000/hyl/api/v1.0/tasks/1

curl -X put --header 'Content-Type: application/json' --header 'Accept: application/json' -d '{"id":"12345"}' http://localhost:8000/hyl/api/v1.0/delete

上一篇 下一篇

猜你喜欢

热点阅读