A Java JSON API starter with user CRUD, API key authentication, and PostgreSQL persistence.
- User CRUD endpoints built with Javalin and Guice
- PostgreSQL persistence with jOOQ and Flyway migrations
- Input validation, problem details, and bcrypt password hashing
- OpenAPI documentation and Swagger UI
- Java 25+
- Maven 3.9+
- PostgreSQL for local runs
- Docker for integration tests
Clone and build the project. Docker must be running for the tests.
git clone https://github.com/odan/java-minimal-api.git
cd java-minimal-api
mvn clean installSet DB_JDBC_URL, DB_USERNAME, DB_PASSWORD, and API_KEY, then start the API:
mvn exec:javaDefault URL: http://localhost:8080. Swagger UI: http://localhost:8080/swagger.