api doc - How swagger 2.0 will handle generics in parameters or return types? -
i using swagger 2.0 documentation generation.in controller class have operations like
public page<employee> getemployees(pageable pageable) {....}
and swagger document generated response of above operation
"responses" : { "200" : { "schema" : { "$ref" : "#/definitions/page" } } }
here swagger documentation failed response page<employee>
.how generic data documentation in swagger ?
what if have return type as
page<string,employee> page<employee,list<department>> page<employee,tuple.two<string,user>>
same true swagger operation parameters , model properties.
Comments
Post a Comment