This repository is archived, it's successor: https://github.com/eo-cqrs/eokson
Project architect: @h1alexbel
REST Responses in the EO fashion.
Motivation. We are not happy creating classes like UserDto
or ErrorDto
each time we need work with REST responses.
We're suggesting classes wrappers out of the box in clear, maintainable way.
Principles. These are the design principles behind eo-rs.
How to use. All you need is this (get the latest version here):
Maven:
<dependency>
<groupId>io.github.eo-cqrs</groupId>
<artifactId>eo-rs</artifactId>
</dependency>
Gradle:
dependencies {
compile 'io.github.eo-cqrs:eo-rs:<version>'
}
JsonError usage:
final JsonError json = new JsonError(
new RsError.WithCode(
"user not found",
404
)
);
final String content = json.content();
Fork repository, make changes, send us a pull request.
We will review your changes and apply them to the master
branch shortly,
provided they don't violate our quality standards. To avoid frustration,
before sending us your pull request please run full Maven build:
$ mvn clean install
You will need Maven 3.8.7+ and Java 17+.
Our rultor image for CI/CD.