New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implementing ApiParamsImplicit #55
Comments
@chrishuttonch Unfortunately thats not been implemented yet. Also the swagger-ui support for this was spotty when I looked at it a while ago. A quick google lead me to this ... which leads me to think that it might easier to configure on the UI than have the swagger ui infer it from the documentation. |
I think there are two parts to this issue, the use of headers and adding extra params to the swagger ui to describe the api. Basically, I have a spring filter that grabs both "X-Header-1" and "X-Header-2" and adds a Request Parameter for the userId to the request before hitting the controller. I would like to describe the need for these two headers via something like the @ApiParamsImplicit. |
@chrishuttonch I think it would be especially useful if supported @RequestHeader annotation out of the box. As such supporting @ApiParamsImplicit is useful too, but in which case you are essentially have the knowledge of the fact that there are headers coming in, as in your case, in a filter. Its a useful feature regardless, we just need to think of how to implement it, especially in the light of the hypermedia support thats introduced in spring mvc |
I have a problem with the definitions controller
I'd like to use @ApiParamsImplicits above my method because I use @Valid annotations with object AdModel
The definition of adModel:
|
yes, I'd like to show on swagger documentation console into method form two parameters: country and adId. These parameters updates my adModel based on these url path parameters, but I don't know how I can indicate by annotations for documentation. thanks |
so @dilipkrish is @RequestHeader not currently supported? If not, is there a feature request for it? |
@kldavis4 Thats on the todo list and this is the TODO item :) |
@dilipkrish great, thanks, I will watch for it |
Added support for @RequestHeader partially fixes issue #55
Hi there,
I'm trying to use the @ApiParamsImplicit annotation. Has this been implemented?
The text was updated successfully, but these errors were encountered: