java - Swagger - Issue using @ApiParam with @CookieParam -
i'm using swagger 1.3.10 , trying swagger ui functionally accept cookie parameter rest service. here's example of java code:
public response getuserinfo( @context httpheaders headers, @apiparam(value="enter brand code integer", defaultvalue="101", required=true) @cookieparam(value = "userbrand") string brand)
now actual swagger ui renders fine actually...it populates default value "101" in case. problem when click "try out" brand parameter coming through null.
seems i'm missing simple here...any thoughts?
thanks lot!
cookie parameters not supported swagger. swagger-core generates them cookie parameters, not supported other tools that's not official part of spec.
Comments
Post a Comment