Skip to content

Instantly share code, notes, and snippets.

@kaveenr
Created January 13, 2019 04:12
Show Gist options
  • Save kaveenr/fbe78dbc9fb98c41e9a6f58fd84b3e93 to your computer and use it in GitHub Desktop.
Save kaveenr/fbe78dbc9fb98c41e9a6f58fd84b3e93 to your computer and use it in GitHub Desktop.
Maven-codegen test
$ mvn clean package
$ docker-compose-up
$ curl -i -X POST "http://localhost:8080/petstore/v1/pets/" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"name\": \"Ktitikatu\", \"tag\": \"cat\"}"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 36 0 0 100 36 0 85 --:--:-- --:--:-- --:--:-- 85HTTP/1.1 200
Date: Sun, 13 Jan 2019 04:11:44 GMT
Content-Length: 0
$ curl -i -X GET "http://localhost:8080/petstore/v1/pets" -H "accept: application/json"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 41 0 41 0 0 872 0 --:--:-- --:--:-- --:--:-- 872HTTP/1.1 200
Date: Sun, 13 Jan 2019 04:12:02 GMT
Content-Type: application/json
Transfer-Encoding: chunked
[{"name":"Ktitikatu","tag":"cat","id":1}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment