Skip to main content

This is a new service. Help us improve it and give your feedback.

MUST

MUST NOT define request body for GET requests

A GET request MUST NOT accept a request body.

Defining a request body on a HTTP GET is frowned upon due to the confusion that comes from unspecified behaviour in the HTTP specification.

Invalid Example

paths:
  /results/{resultId}:
    get:
      summary: Get a specific test result
      description: Get a specific test result.
      operationId: getResult
      tags:
        - results
      requestBody:
        content:
          application/json:
            ...

Published: 10 February 2025
Last updated: 14 August 2025
Page Source