A REST API for the HR department of Willy Wonka's factory.
- Run docker-compose:
$ docker-compose up -d
- Try out the REST API:
$ curl -X POST \
http://localhost:8080/api/v1/oompas/ \
-H 'Content-Type: application/json' \
-d '{"name":"John","age":32,"job":"cooker"}'
Retrieve full list:
$ curl -X GET \
http://localhost:8080/api/v1/oompas \
-H 'Content-Type: application/json'
Retrieve only one resource:
$ curl -X GET \
http://localhost:8080/api/v1/oompas/1 \
-H 'Content-Type: application/json'
$ curl -X PUT \
http://localhost:8080/api/v1/oompas/3 \
-H 'Content-Type: application/json' \
-d '{"name":"John","age":32,"job":"cooker"}'