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

Add REST API to obtain a list of all Component Labels. #762

Closed KurtStam closed 7 years ago

KurtStam commented 7 years ago

This is needed for the ipaas UI.

It would call: https://github.com/apache/camel/blob/master/platforms/catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java#L233

and return a list of strings containing all labels.

davsclaus commented 7 years ago

See https://issues.apache.org/jira/browse/CAMEL-10561

Will add this to Apache Camel and then we can in the interim time copy that to fabric8 until we upgrade to Camel 2.19.0.

davsclaus commented 7 years ago

I made a little standalone app you can try also which has embedded swagger ui

screen shot 2016-12-06 at 1 55 47 pm

davsclaus commented 7 years ago

Implemented this on the Apache Camel side, now need to port that to django so we can have it included for ipaas.

davsclaus commented 7 years ago

There is a new django release which has camel-catalog-rest included. So I need to hook this up into fabric8-forge-core to hook that up as a JAX-RS app.

davsclaus commented 7 years ago

The camel catalog REST api is now baked into fabric8-forge

However the swagger json doc is not included as this requires CXF 3.1.7 or newer. And we are stuck on 3.1.6 due fabric8 has some fabric8-cxf components that are using this version and they haven't been upgraded. Not sure if that is easy.

screen shot 2016-12-06 at 6 05 40 pm

davsclaus commented 7 years ago

To find all Camel components, this API returns their names

camel-catalog/findComponentNames

davsclaus commented 7 years ago

You can see the API here https://github.com/fabric8io/django/blob/master/camel-catalog-rest/src/main/java/org/apache/camel/catalog/rest/CamelCatalogRest.java#L35

davsclaus commented 7 years ago

Logged a ticket to upgrade CXF https://github.com/fabric8io/fabric8/issues/6622

davsclaus commented 7 years ago

See #767