demaniak/cic
Spring boot application that touches on some basics.
30
Please refer to the github repo for the most up to date information.
A spot of practice for some reasons. You will probably not be interested.
A spring boot application :)
Start up, visit one of (or both!)
Hopefully from there it will be self explanatory!
Here we have a swagger UI demonstrating the rest end points exactly as specified. Go ahead, hit the "Try it" buttons :)
Note
Please ignore the current error relating to "Could not resolve pointer: /definitions/Calendar" - it does NOT affect the functioning of the API in anyway.
Reading
So HATE(oas) it or love it, there is a movement towards "REST nirvana".
So, at the application root, you will find a HAL browser, which you can use to explore the API.
Note that the endpoints here are, by necessity NOT exactly as specified.
I assume Java 8 and maven 3.5 is installed and working.
If so, fire up
mvn clean package
If you would like to build a docker image instead, you can run
mvn -Ddocker.image.name=demaniak/cic -P build-docker clean deploy
This of course assume Docker is alive and well on your system.
It will build the image, AND then attempt to push it to docker central. Unless you somehow have MY credentials, that won't work.
Please adjust demaniak/cic in the above command to an image name that YOU have write
access to.
docker run -it --rm -p 8080:8080 demaniak/cic:0.0.1-SNAPSHOT
Ctrl+C should kill it nice and dead.
docker pull demaniak/cic