Java >= 11
javawebservice is a Javalin (Service Oriented Architecture) based MicroFramework rest api server application.
Javalin has automated plugins for JSON mapping, Web Sockets, template rendering, and OpenAPI (Swagger).
As to me it's better than spark framework.
This codebase demonstrates implementation of crud operations, authentication, routing, pagination, unit test and openapi (partial).
Full OpenApi or Swagger automated documentation of implemented api and parameters can be put adding some extra lines of code only.
This we normally enable in demo app not operational app.
gradlew build
java -jar build/libs/kotlinapp-1.0.jar --add-to-start=conscrypt
gradlew clean
- Conscrypt : A Java Security Provider
- Conscrypt-openjdk-uber : Library from Uber
- KOIN : A pragmatic lightweight dependency injection framework for Kotlin developers
- Jackson : Jackson has been known as "the Java JSON library" or "the best JSON parser for Java"
- Java-jwt : A Java implementation of JSON Web Token (JWT) - RFC 7519
- Exposed : A lightweight ORM framework for Kotlin - H2, MySQL, MariaDB, Oracle, PostgreSQL, MSSQL, SQLite
- HikariCP : HikariCP is a "zero-overhead" lightweight JDBC connection pool
- MariaDB : MariaDB Database Engine
- Unirest-java : Simplified, lightweight HTTP client library
- JUnit : Java Unit Test Framework