Eureka
Eureka
This component is used to discover services for the purpose of load balancing and failover of middle-tier servers.
This component is used to discover services for the purpose of load balancing and failover of middle-tier servers.
This component allows you to wrap your network calls with the Hystrix library. Hystrix is a library that add latency tolerance and fault tolerance logic, as well as metrics.
This module can expose REST APIs for doing CRUD operations on aggregates, through their DTO.
JAX-RS is a specification providing a standard way to write REST resources in Java. SeedStack implements the JAX-RS standard through the Jersey 2 implementation.
The Representational State Transfer (REST) architectural style was defined in 2000 by Roy Fielding. This architectural style defines a set of constraints based on the Web architecture.
This component allows you to define an HTTP client with a simple Java interface that you can then inject and use transparently in your code.
The CRUD add-on is a business framework extension that can expose CRUD operations for any Aggregate/DTO couple.
The seed-rest-core
and its companion modules provides support for exposing REST resources using JAX-RS. SeedStack implements
the JAX-RS standard through the Jersey 2 implementation.
We already have a minimal REST API that says Hello World! in our demo application. In this page we will enrich the API with some SeedStack A Swagger descriptor Swagger is a popular API description format. It helps in discovering API, whereas by humans or by machines. To add a Swagger descriptor to our project, we just need to add the following dependency: Maven Gradle <dependency> <groupId>org.seedstack.addons.swagger</groupId> <artifactId>swagger</artifactId><version>2.
SeedStack Swagger add-on exposes a REST resource describing annotated JAX-RS resources in the Swagger format. Dependency To automatically generate and expose a Swagger descriptor for your application, add the following dependency: Maven Gradle <dependency> <groupId>org.seedstack.addons.swagger</groupId> <artifactId>swagger</artifactId><version>2.1.3</version> </dependency> Specifying versions manually is error-prone, use dependency management instead. Show version dependencies { compile("org.seedstack.addons.swagger:swagger:2.1.3") } Configuration No configuration is needed for basic usage, but the options below can be used to tune the generated Swagger.
Testing is a crucial part of application development and should not be overlooked. SeedStack can help you to test your application by providing the necessary tools. Unit testing SeedStack doesn’t provide specific tools for unit-testing. Just write your unit tests as usual. Integration testing SeedStack provides several features to do integration testing. You can do things like altering configuration, defining launch arguments or set system properties. This can be done either for the execution of a full test class, for a specific test only, or both.