Re: custom datatype in request body for POST method

2017-03-23 Thread tony tam
You need to share the swagger json file that is generated from your code for help with the swagger ui question. Can you paste it in here? > On Mar 23, 2017, at 5:41 AM, Dinesh PS wrote: > > @ApiOperation(value = "Add", notes = "Add Notes", response = Add.class) > @RequestMapping(value =

Re: custom datatype in request body for POST method

2017-03-23 Thread Dinesh PS
@ApiOperation(value = "Add", notes = "Add Notes", response = Add.class) @RequestMapping(value = "/add", method = RequestMethod.POST, produces = {MediaType.APPLICATION_JSON_VALUE}, consumes = {MediaType.APPLICATION_FORM_URLENCODED_VALUE}) @ApiResponses( { @ApiResponse( code = 201, response = Add.c

Re: custom datatype in request body for POST method

2017-03-22 Thread tony tam
You’ll need to share some more details. Post some code for best feedback. > On Mar 22, 2017, at 7:46 AM, subbu mani wrote: > > In Swagger 2 , we are facing below issue : > > We are having a POST method, which uses query string while submitting the > request. Since it is a security issue , we

custom datatype in request body for POST method

2017-03-22 Thread subbu mani
In Swagger 2 , we are facing below issue : We are having a POST method, which uses query string while submitting the request. Since it is a security issue , we have used @ApiImplicitParam annotation since it is supporting 'body' attribute. This works only for the primitive data types and does