curl post put delete get

http://vertx.io/blog/vert-x3-and-postgresql-json-type/index.html
//GET 
curl \
    -i \
    -H "Content-Type: application/json" \
    -X GET \
    http://localhost:8080/api/whiskies

//POST 
curl \
    -i \
    -H "Content-Type: application/json" \
    -X POST \
    -d '{"id": 1, "name": "myname", "origin": "myorigin"}' \
    http://localhost:8080/api/whiskies

//PUT 
curl \
    -i \
    -H "Content-Type: application/json" \
    -X PUT \
    -d '{"name": "myname1", "origin": "myorigin1"}' \
    http://localhost:8080/api/whiskies/1

//DELETE 
curl \
    -i \
    -H "Content-Type: application/json" \
    -X DELETE \
    http://localhost:8080/api/whiskies/4


你可能感兴趣的:(delete)