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 ...

Reply via email to