camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Able to read Swagger schema model from a json file instead of creating a POJO.
Date Thu, 28 Jan 2016 10:32:05 GMT
No this is not possible.

On Thu, Jan 28, 2016 at 11:27 AM, Erukala Uttam <2311uttam@gmail.com> wrote:
> In this route ,
>
> rest(“/sample”).post(“/test”) .description("Health Check route").
> outType(User.class)
>
> .produces("application/json")
>
> .param().dataType("string").name("id").type(RestParamType.query
>
>             ).description("partnerId of the Service").required(true)
>
>                                                 .endParam()
>
>                                         .param()
>
>     .dataType("string").name("secret").type(RestParamType.query
>
> ).description("partner_secret of the Service").required(true)
>
>                                        .endParam()
>
> .param()
>
> .dataType("application/json").name("body").type(RestParamType.body).description("
> request body").required(false)
>
>                                     .endParam()
>
>                                    .responseMessage()
>
> .code(200).message("returns the health details of the
> application").endResponseMessage().responseMessage();
>
>
> In the Above route instead of specifying the outType as a Class name.Cam we
> give a json file which has a schema of the required format of the response
> ?Can we do something like that ...



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Mime
View raw message