The Swagger integration provides a feature. So adding this should be quite similar to adding the Jackson provider.

You create an intent service like this:
https://github.com/apache/cxf-dosgi/blob/master/samples/rest/impl-jackson/src/main/java/org/apache/cxf/dosgi/samples/rest/impl/JacksonIntent.java

and add it to the service:
https://github.com/apache/cxf-dosgi/blob/master/samples/rest/impl-jackson/src/main/java/org/apache/cxf/dosgi/samples/rest/impl/TaskResourceImpl.java#L36

Can you test this and give Feedback if it works.

I also thought about supporting the @Features annotation on DOSGi service to provide a simple way to add features that do not need additional config.

Christian

On 06.04.2017 08:04, nino martinez wael wrote:
Hi Guys

I've been contemplating on documentation. Currently we've gone down the
offline documentation road, using enunciate[1] while it feels okay I've
seen that CXF supports other directions natively[2]. I am wondering if its
possible to use those with DOSGI?



[1]http://enunciate.webcohesion.com/
[2]http://cxf.apache.org/docs/swagger2feature.html





--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com

Reply via email to