The following link explains how to add a swagger rest service description to an cxf powered webapp such as cmdbuild.
http://cxf.apache.org/docs/swagger2feature.html#Swagger2Feature-Swagger2Feature
According to the doc, it is possible to add it without code modification either by using a bean descriptor or by modifying the deployed web.xml file.
I would like to know what way you would choose ?
Regards,
J.-M.