An optional query parameter.
The name of the parameter to define.
The object that validates the value of the parameter, if present.
The object that processes the parameter and its value, if present.
The name of URL query parameter.
A processor that will transform a parameter into its most optimal form to
be used by a method request handler. For example, a parameter
param=value1,value2,value3
can be transformed so that the value is
converted into a ReadonlyArray<string>
or a ReadonlySet<string>
.
The validator that determines whether the value of the parameter is valid.
A method that validates and processes a parameter into its final form.
The express request that contains the query parameters.
The processed key value pair or undefined
if missing and not required.
An class that defines an optional query parameter in a method.
Query parameters are included in the request URL as such:
apix.example.com/entity/method?paramName=paramValue¶m2=value2
In this example, there are 2 parameters,
paramName
andparam2
, and each has a value ofparamValue
andvalue2
, respectively.Example
See
ApiXMethod#queryParameters ApiXUrlQueryParameterValidator ApiXUrlQueryParameterProcessor