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
网友评论