Skip to main content

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.

PropertyValue
EnabledYes
Maximum SeverityWarning
MessageEntry request with method GET has defined postData.
CodeHAR_V101
TypeValidation
Rule SystemSemantic
Broad CategoryRequests
Products ImpactedAPI Transformer, Code Generation, Developer Experience Portal
Tagshar api semantic validation data get request

Suggested Fixes

  • Remove postData property definition from the entry request.

For More Information