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
Permalink
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
README.md Docker JAVA_OPTS Apr 28, 2017
build-docker.sh Source code commit Feb 13, 2017
pom.xml Source code commit Feb 13, 2017

README.md

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.

Maven

Form the repository base folder run:

mvn spring-boot:run

Docker

Docker should be installed in your computer.

sh build-docker.sh
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