Important
|
Tested with:
|
-
Package apps:
execute inkotlin-user-service
$ mvn clean package
execute inkotlin-api-gateway
$ mvn clean package
-
Start services
execute in project root$ docker-compose up --build -d
-
Sample user create request
execute in shellhttp -h POST http://localhost:8080/users/ \#(1) 'Content-Type: application/json' \ [email protected] name=John lastname=Doe
-
http is httpie command line client
responseHTTP/1.1 201 Date: Thu, 25 May 2017 10:12:17 GMT Location: http://localhost:8080/users/5926ae01410df8000740da9a Transfer-Encoding: chunked X-Application-Context: application
-
-
Sample get user request
execute in shellhttp :8080/users/5926ae01410df8000740da9a
responseHTTP/1.1 200 Content-Type: application/json;charset=UTF-8 Date: Thu, 25 May 2017 10:12:43 GMT Transfer-Encoding: chunked X-Application-Context: application { "email": "[email protected]", "lastname": "Doe", "name": "John" }