no-post-data-for-get-request
Overview
This rule belongs to the har-validation
ruleset and states that:
An entry request with method GET must not define a postData
(i.e. the request payload). This is because such methods do not expect a body and, therefore, all related information will be ignored automatically during import/transformations in APIMatic.
Property | Value |
---|---|
Enabled | Yes |
Maximum Severity | Warning |
Message | Entry request with method GET has defined postData . |
Code | HAR_V101 |
Type | Validation |
Rule System | Semantic |
Broad Category | Requests |
Products Impacted | API Transformer, Code Generation, Developer Experience Portal |
Tags | har api semantic validation data get request |
Suggested Fixes
- Remove
postData
property definition from the entry request.