Open cmoulliard opened 7 years ago
@cmoulliard sure. The forge-service-core
can be used by adding the following dependency:
<dependency>
<groupId>org.jboss.forge</groupId>
<artifactId>forge-service-core</artifactId>
<version>1.0.0.Beta2</version>
</dependency>
This JAR contains the RESTUI* classes needed to interact with Forge and the classes to initialize Furnace. It also contains a UICommandHelper class to generate Json objects from the request (which is represented by your DTO classes at the moment).
I also provided a forge-service-rest
dependency containing the JAX-RS resource that can consume UI commands. But we can continue using the existing Fabric8 JAX-RS resource.
It has the basics to run Forge and consume its services. It does basically the same as the Fabric8 REST Forge project does but without the Fabric8 enhancements (eg. It doesn't push to a Gogs instance when completed). The idea is to provide a PR to the fabric8-forge repository to use the forge-service as a foundation for the existing Fabric8 REST Forge project.
@gastaldi : Can you review the ticket and enhance it please ?