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

Popular posts from this blog

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

c# - Search and Add Comment with OpenXML for Word -