Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

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

Closed
KurtStam opened this issue Dec 5, 2016 · 9 comments
Closed

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

KurtStam opened this issue Dec 5, 2016 · 9 comments
Assignees

Comments

@KurtStam
Copy link
Member

KurtStam commented Dec 5, 2016

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 davsclaus self-assigned this Dec 6, 2016
@davsclaus
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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

@davsclaus
Copy link
Member

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 added a commit to davsclaus/fabric8-forge that referenced this issue Dec 6, 2016
@davsclaus
Copy link
Member

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
Copy link
Member

To find all Camel components, this API returns their names

camel-catalog/findComponentNames

@davsclaus
Copy link
Member

Logged a ticket to upgrade CXF
fabric8io/fabric8#6622

@davsclaus
Copy link
Member

See #767

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants