Hi,
I am integrating swagger-servlet to my APIs. In one the POST api i have two
input parameters and rest of the data i am passing from POST body.
So i used something like below annotations
@ApiOperation( value="MyApi", notes="MyOrder", response=Model.class,
httpMethod="POST", nickname="MyOrders", produces="application/json,
application/xml")
@ApiImplicitParams({
@ApiImplicitParam(name="mode", value="API identifier", required=true,
dataType="string",paramType="query"),
@ApiImplicitParam(name="format", value="Response format specifier",
defaultValue="json", allowableValues="json,xml" ,required=true, dataType=
"string", paramType="query"),
@ApiImplicitParam(name="body", value="body", required=true, dataType=
"myPackage.Test;", paramType="body")
})
But the swagger definition for body param is getting generated something
like below
{
"in" : "body",
"name" : "body",
"description" : "body",
"required" : true,
"schema" : {
"type" : "string"
}
} ],
Any suggetion what i am missing?
I am expecting a data type of Test.class inpalce of string for the body.
--
You received this message because you are subscribed to the Google Groups
"Swagger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.