Public Repository

Last pushed: 9 months ago
Short Description
Simple Docker Camel JSON REST SWAGGER micro service
Full Description

Inspired by the Ibsen/Anstey Camel in Action example here:

https://www.manning.com/books/camel-in-action-second-edition

Swagger API call:
http://localhost:9090/swagger.json

Postman Interactions:
View default data using Get
http://localhost:9090/applicants/1
http://localhost:9090/applicants/2

Add an entry with Post
http://localhost:9090/applicants
{
"firstName": "Alice",
"lastName": "Schmoe",
"immigrantNumber": "99FU82633JK",
"dateOfBirth": "Tue Apr 01 02:35:42 EST 1999"
}

Verify with Get
http://localhost:9090/applicants/3

Modify record 3 with Put
{
"id": "3",
"firstName": "Alice",
"lastName": "Schmultz",
"immigrantNumber": "99FU82633JK",
"dateOfBirth": "Tue Apr 01 02:35:42 EST 1999"
}

Verify change with Get
http://localhost:9090/applicants/3

Delete applicant 3
http://localhost:9090/applicants/3

Verify delete operation with Get, status code 404 Not Found
http://localhost:9090/applicants/3

Docker Pull Command
Owner
domitch