I have added the following to my API method:
@ApiImplicitParams(
@ApiImplicitParam(name = "articleId", value = "Example context parameter for the rules engine", dataType="String")
)
public Response authorizeTextPlain(@Context HttpServletRequest request) throws Exception
As it happens this method can take arbitrary params, and it would be great if Swagger UI could show a dynamic form allowing the user to enter name/value pairs (enhancement request). What I'm trying to do here though is show an example parameter at least.
The JSON is generated correctly with the parameter, and Swagger UI shows it, but it doesn't pass it when you click Try it out!

(it's not just a UI issue with the displayed url - parameter is not sent)
Thanks
Apologies, I needed to set the paramType="query". For anyone stuck on this, the annotation looks like:
@ApiImplicitParams(
@ApiImplicitParam(name = "articleId", value = "Example context parameter for the rules engine", paramType="query", dataType="String")
)
Am just getting started with Swagger and Swagger UI but very promising!
Most helpful comment
Apologies, I needed to set the paramType="query". For anyone stuck on this, the annotation looks like:
Am just getting started with Swagger and Swagger UI but very promising!