Skip to main content

no-xml-request-body-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 cannot allow XML body requests.

PropertyValue
EnabledYes
Maximum SeverityError
MessageXML requests cannot be enabled for the endpoint with the currently assigned HTTP method.
CodeAPIMATICPRE_V205
TypeValidation
Rule SystemSemantic
Broad CategoryEndpoint Parameters
Products ImpactedCode Generation, Developer Experience Portal, API Transformer
Tagspreliminary checks validation apimatic body endpoint xml

Suggested Fixes

  • Disable XML requests for this endpoint.
  • Change HTTP method to one that supports a request body.