You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Almost all of my endpoints include a @Context RequestContext requestContext parameter like the above. That object includes common path parameters such as language and country.
However, I don't want to do that for every one of my resources, as they are many and nearly all of them have a RequestContext object inside their methods.
What are the solutions available here? I tried adding the @ApiImplicitParams in the RequestContext class like this:
Almost all of my endpoints include a
@Context RequestContext requestContext
parameter like the above. That object includes common path parameters such as language and country.What I can do for this specific interface is add a
ApiImplicitParams
above the interface name, and that works fine.However, I don't want to do that for every one of my resources, as they are many and nearly all of them have a
RequestContext
object inside their methods.What are the solutions available here? I tried adding the
@ApiImplicitParams
in theRequestContext
class like this:But it didn't read them.
Can it be done by overriding the Swagger reader? Or by using inheritance somehow? Or any other way?
Thanks.
The text was updated successfully, but these errors were encountered: