Perhaps, on building REST API with Java or Kotlin, we always do the same things like
checking JSON inputs and building a response object.
This framework offer convenient methods for those situations.
This framework works well with an architecture of DDD.
You can handle the problem well on using DDD layers(controllers, services, and so on).
We can feature mainly 3 functions:
- Input checking
- Logging with
Logback
,slf4j
- Response Builder
- a Web API client
Add the dependencies.
Add the dependency.
build.gradle.kts...
compile group: 'net.framework.api.rest', name: 'rest-api-framework', version: '1.0.0'
build.gradle.kts...
implementation("net.framework.api.rest:rest-api-framework:1.0.0")
Add the dependency on pom.xml
.
<dependency>
<groupId>net.framework.api.rest</groupId>
<artifactId>rest-api-framework</artifactId>
<version>1.0.0</version>
</dependency>
See more: https://github.com/simonNozaki/rest-api-framework/packages
*underconstructions...