Validating Query Parameters and Headers
Configure APIkit Router to validate headers and query parameters, restricting them to the attributes specified within your API specification.
-
In Studio, select APIkit Router.
-
Click Edit for your router configuration.
-
Select Query Parameters Strict Validations to restrict the usage of query parameters to the ones defined in your API specification.
-
Select Headers Strict Validations to limit the headers to the ones specified in your API specification.
You can also configure APIkit Router to validate headers and query parameters by updating the APIkit configuration code as follows:
<apikit:config name="api-config"
api="api.raml"
outboundHeadersMapName="outboundHeaders"
httpStatusVarName="httpStatus"
queryParamsStrictValidation="true"
headersStrictValidation="true" />
Disable Validation of Query Parameters and Headers
Disable the validation of query parameters and headers to minimize latency.
-
In Studio, select APIkit Router.
-
Click Edit for your router configuration.
-
Select Disable Validations.
You can also disable the validation of query parameters and headers to minimize latency by updating the APIkit configuration code as follows:
<apikit:config name="api-config"
api="api.raml"
outboundHeadersMapName="outboundHeaders"
httpStatusVarName="httpStatus"
disableValidations="true" />