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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -