Hi, I have defined cxfrs route and its working fine. However when I integrate swagger2feature of cxf I can not see api docs. When i hit swagger.json path to get swagger response the request again hits my route which produces wrong response. I think requests for swagger api should not hit my routes, what I am missing here?
url for get : http://localhost:8080/api/servlet/rest/bookstore/1 returns : { "name": "name", "isbn": "isbn", "price": 10 } url for getting swagger response : http://localhost:8080/api/servlet/rest/swagger.json returns: { "name": "name", "isbn": "isbn", "price": 10 } Here is my interface: @WebService @Path("/bookstore") @Consumes("application/json") @Produces({"application/json","application/xml"}) @Api(value = "/bookstore ", description = "Operations about books") public interface BookStore { @WebMethod @GET @Path("/{id}") @Consumes("*/*") List<Book> getBook(@PathParam("id") @WebParam(name = "id") Long id) throws Exception; @POST @Path("/books") @Consumes({"application/json","application/xml"}) Book addBook(Book book); } Here is the route: from(endpoint) .log("${headers}") .process(new Processor() { @Override public void process(Exchange exchange) throws Exception { Book b = new Book(); b.setIsbn("isbn"); b.setName("name"); b.setPrice(10.0); exchange.getIn().setBody(b); } }) ; [Facebook]<http://www.facebook.com/Finansbank> [Twitter] <http://twitter.com/finansbank> [https://www.finansbank.com.tr/Disclaimer/BannerImages.aspx?date=31.08.201614:2300]<https://www.finansbank.com.tr/Disclaimer/Bannerlink.aspx?date=31.08.201614:2300> Bu e-posta'n?n i?erdi?i bilgiler (ekleri dahil olmak ?zere) gizlidir. Onay?m?z olmaks?z?n ???nc? ki?ilere a?iklanamaz. Bu mesaj?n g?nderilmek istendi?i ki?i de?ilseniz, l?tfen mesaj? sisteminizden derhal siliniz. IBTech A.?. bu mesaj?n i?erdi?i bilgilerin do?rulu?u veya eksiksiz oldu?u konusunda bir garanti vermemektedir. Bu nedenle bilgilerin ne ?ekilde olursa olsun i?eri?inden, iletilmesinden, al?nmas?ndan, saklanmas?ndan sorumlu de?ildir. Bu mesaj?n i?eri?i yazar?na ait olup, IBTech A.?.'nin g?r??lerini i?ermeyebilir. The information contained in this e-mail (including any attachments)is confidential. It must not be disclosed to any person without our authority. If you are not the intended recipient, please delete it from your system immediately. IBTech A.S. makes no warranty as to the accuracy or completeness of any information contained in this message and hereby excludes any liability of any kind for the information contained therein or for the information transmission, reception, storage or use of such in any way whatsoever. Any opinions expressed in this message are those of the author and may not necessarily reflect the opinions of IBTech A.S.