Free MuleSoft CONNECT Keynote & Expo Pass Available!

Register now+
Nav

To Validate Query Parameters and Headers

This procedure assumes that you have generated Mule flows using APIkit in Studio. You can configure APIkit Router to validate, or not, headers and query parameters. Strict query parameter and header validation limits parameters to those defined in the RAML. Enabling validations can affect performance. Many complex validations can cause a delay in response time, so if your use case cannot tolerate latency, you might want to disable validations. By default validations are disabled.

  1. In Studio, select APIkit Router.

    router selected
  2. In Router Configuration, click Edit-16x16 or Add-16x16.

  3. In Disable Validations, select True to disable validations. You can disable or enable validations using an expression from the validations drop-downs.

    validation configuration
  4. In Query Parameters Strict Validations, select True to limit parameters to those defined in the RAML.

  5. In Headers Strict Validations, select True to limit headers to those defined in the RAML.

  6. Reverse the procedures by selecting False to inhibit the respective validation, or set Disable Validations to False to inhibit both validations.