12

According to Swagger's tutorial, seems swagger only support Jersey framework (See https://github.com/wordnik/swagger-core/wiki/java-jax-rs)

Does anybody have experience on making swagger work with CXF JAX-RS implementation? Could you share your suggestions here?

Konstantin V. Salikhov
  • 4,554
  • 2
  • 35
  • 48
Dylan
  • 179
  • 2
  • 12

2 Answers2

1

Yes, it is possible to use Swagger with CXF JAX-RS implementation using swagger-jaxrs_2.10 module.

Using Swagger in CXF environment require some specific configuration that can be done via Spring application context.

Here is a good tutorial and example of such configuration.

Konstantin V. Salikhov
  • 4,554
  • 2
  • 35
  • 48
-1

Yes, It is possible to use swagger with Apache CXF. Below is the swagger usage in my working API.

@GET
    @Path("/version")
    @Produces(MediaType.APPLICATION_JSON)
    @ApiOperation(value = "For paged fetches returns a version for future fetches")
    public long version(@Context HttpHeaders headers) {
        return ABC.version();
    }
GKS
  • 299
  • 4
  • 15