Annotation Interface AllowsUnknownQueryParameters
Exempts a resource method (or every method of a resource class) from the unknown-query-parameter rejection
performed by
UnknownQueryParameterFilter.
That filter rejects any query parameter the matched resource method cannot bind, deriving the accepted set from
the method's own @QueryParam declarations. A handful of endpoints read the query string as a whole rather
than through declared parameters — the 302 pass-through aliases forward every parameter they are given to the
endpoint they redirect to — so for them there is no set of declared names to check against and every parameter is
meaningful. Annotate those.
This is an opt-out from a check, not a licence to ignore input: a method carrying this annotation is asserting that it reads the query string itself.
- Author:
- gemma