swagger-core icon indicating copy to clipboard operation
swagger-core copied to clipboard

Is there anyway to specify http header value for the swagger API provider

Open TonyWuLihu opened this issue 11 years ago • 2 comments

Hi I'm wondering whether the swagger could support specify http header value in the generated swagger UI ?

TonyWuLihu avatar Jan 21 '15 06:01 TonyWuLihu

Assuming you're using JAX-RS, if you have a @HeaderParam it would translate to a header parameter. If not, you can use @ApiImplicitParam and mark it as a header parameter.

webron avatar Jan 21 '15 09:01 webron

Oh... Thx for the useful info !!

TonyWuLihu avatar Jan 21 '15 09:01 TonyWuLihu