fabric8io / fabric8-forge

Supports JBoss Forge plugins for the Fabric8 iPaaS along with using Forge as a REST service inside Fabric8 DevOps
Apache License 2.0
11 stars 21 forks source link

Merge work done by George (Obsidian) with this project #726

Open cmoulliard opened 7 years ago

cmoulliard commented 7 years ago

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 ?

gastaldi commented 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).

gastaldi commented 7 years ago

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.