[ 
https://issues.apache.org/jira/browse/CXF-7316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16006335#comment-16006335
 ] 

Francesco Chicchiriccò commented on CXF-7316:
---------------------------------------------

Hi [~sergey_beryozkin], thanks for notifying this issue.

At the moment I do have troubles with Syncope, if I move to CXF 3.1.12-SNAPSHOT 
and follow your upgrade instructions above.
The issue is that {{swagger.json}} does not contain the {{paths}} field, e.g. 
no REST endpoints are identified at all.
The reason is likely caused by the fact that Syncope does only use JAX-RS 
annotations, no Swagger proprietary annotations at all.

By further investigating with the [Spring Boot 
demo|https://github.com/apache/cxf/tree/3.1.x-fixes/distribution/src/main/release/samples/jax_rs/spring_boot],
 I have found so far that:

* with CXF 3.1.11, the {{paths}} field is populated even if I remove the 
Swagger's {{@Api}} annotation in {{HelloServiceImpl1}} and 
{{HelloServiceImpl2}}, when changing, in {{SampleRestApplication}}, from
  {code}
endpoint.setFeatures(Arrays.asList(new Swagger2Feature()));
  {code}
  to
 {code}
Swagger2Feature feature = new Swagger2Feature();
feature.setScanAllResources(true);
feature.setResourcePackage("sample.rs.service");
endpoint.setFeatures(Arrays.asList(feature));
  {code}
* with CXF 3.1.12-SNAPSHOT, with the same modifications, the {{paths}} field is 
absent, as it happens with Syncope

I am naturally not sure that the reason behind this problem lies in the changes 
from this issue, as this is the first time I try with 3.1.12-SNAPSHOT; I'll 
keep investigating and let you know.

> Update swagger-jaxrs dependency to 1.5.13
> -----------------------------------------
>
>                 Key: CXF-7316
>                 URL: https://issues.apache.org/jira/browse/CXF-7316
>             Project: CXF
>          Issue Type: Task
>    Affects Versions: 3.1.10
>            Reporter: Dennis Kieselhorst
>            Priority: Minor
>             Fix For: 3.2.0
>
>




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to