-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Closed
Description
When I first noticed this bug I thought it happens only when I use ApiParam and ApiImplicitParams at the same time.
Looks like ApiImplicitParams is ignored in any case. As result I can't document security token which intercepted by servlet filter earlier.
Here is endpoint
@GET
@Consumes("text/plain")
@Produces(MediaType.APPLICATION_JSON)
@Path("testParams")
@ApiOperation(response = String.class, value = "Returns string with provided parameter")
@ApiImplicitParams({@ApiImplicitParam(name = "token", required = true, dataType = "string", paramType = "query", value = "API token")})
public String testParams(@ApiParam(required = false, value = "ID of timesheet") @QueryParam("id") int id) {}Example project is located at
https://github.com/cppexpert/broken_swagger_jaxrs_integration