Java REST API best practices, a working example with Spring Boot
Switch branches/tags
Nothing to show
Clone or download
Latest commit d936031 Apr 28, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
src/main UserPublicDto minor refactoring. Mar 8, 2017
.gitignore Source code commit Feb 13, 2017
Dockerfile Docker JAVA_OPTS Apr 28, 2017
LICENSE Initial commit Feb 13, 2017 Docker JAVA_OPTS Apr 28, 2017 Source code commit Feb 13, 2017
pom.xml Source code commit Feb 13, 2017

Java REST API best practices

A working example with Spring Boot.

How to run

You can run the application from Maven, from Docker or as Java standalone executable. To build the application you will need Maven and Java8. After few seconds the application should be availabe, for example http://localhost:8080/health returns the health status.


Form the repository base folder run:

mvn spring-boot:run


Docker should be installed in your computer.

sudo docker run --net=host -e JAVA_OPTS="-Xmx1g -Xms1g" java-api-guidelines

Java standalone executable

mvn package
java -jar target/java-api-guidelines.jar