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.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Error |
Message | XML requests cannot be enabled for the endpoint with the currently assigned HTTP method. |
Code | APIMATICPRE_V205 |
Type | Validation |
Rule System | Semantic |
Broad Category | Endpoint Parameters |
Products Impacted | Code Generation, Developer Experience Portal, API Transformer |
Tags | preliminary checks validation apimatic body endpoint xml |
Suggested Fixes
- Disable XML requests for this endpoint.
- Change HTTP method to one that supports a request body.