how to override datatype of a queryparam

24 views
Skip to first unread message

satheesh kumar

unread,
Apr 16, 2014, 1:50:13 PM4/16/14
to swagger-sw...@googlegroups.com
Hi,

I've an api
public Response getTrackInJSON(@QueryParam(
value = "track") Track track) {
..
}

I'm using swagger maven plugin to generate the html during compile time.
When the query is displayed in the html it looke like this

query

Parameter     Required     Description     Data Type
track              false                               Track

I want to change the Data Type from Track to String.
I tried @ApiImplicitParam and it does what I expect out of it. But still displays the old parameter with Data Type Track.
Can anyone help me with this?

query

Parameter     Required     Description     Data Type
track             false                                Track         (how to remove this?)
track             false                                String
Reply all
Reply to author
Forward
Message has been deleted
0 new messages