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 offers 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
- Java ... 11
Add the dependencies.
Add the dependency.
build.gradle...
implementation group: 'net.framework.api.rest', name: 'rest-api-framework', version: '1.1.0'
build.gradle.kts...
implementation("net.framework.api.rest:rest-api-framework:1.1.0")
Add the dependency on pom.xml
.
<dependency>
<groupId>net.framework.api.rest</groupId>
<artifactId>rest-api-framework</artifactId>
<version>1.1.0</version>
</dependency>
See more: https://github.com/simonNozaki/rest-api-framework/packages
This library has convenient classes for handling common problems. See usages in tests.
RestControllerHelper
ServiceHelper
SimpleApiClient
... an API client singleton. Easily can build client.
StdioExtensions
... extensions for standard I/OObjectInspector
... Error building singleton. This class test a subject and build errors
#Contributing
If you are interested in this library, first of all, Thanks a lot!
Anytime waiting for your idea or contributing!