lundi 20 avril 2015

How to add self-descrptive text to swagger using Camel Java SQL

Vote count: 0

This Java DSL for specifying REST endpoint in camel 2.15

rest("/path/")
                .get({"{id}")
                .produces(MediaType.TEXT_HTML)
                .description("My Comment")
                .to("direct:myroute");

comes back with this swagger json with EMPTY description despite specifying a description in the DSL above;

{"apiVersion":"1.2.3","swaggerVersion":"1.2","apis":[{"path":"/path/","description":""}]}

Please, does anyone know how to put a swagger description in the java DSL so that it shows in the swagger json and then the swagger UI?

Thanks in advance.

asked 1 min ago



How to add self-descrptive text to swagger using Camel Java SQL

Aucun commentaire:

Enregistrer un commentaire