Skip to main content

no-body-form-parameters-in-non-body-http-methods

Overview

This rule belongs to the apimatic-preliminary-validation ruleset and states that:

HTTP methods like GET do not support a request body therefore, such endpoints should not contain parameter definitions of format "Body" or "Form".

PropertyValue
EnabledYes
Maximum SeverityError
MessageForm/Body parameters found in an endpoint which has a HTTP method assigned that does not support these parameters.
CodeAPIMATICPRE_V203
TypeValidation
Rule SystemSemantic
Broad CategoryEndpoint Parameters
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic body form parameter endpoint

Suggested Fixes

  • Remove all parameters, that have the format "Body" or "Form", from the endpoint.
  • Change the format of the parameters to a non-body format.

For More Information