Closed
Description
Q&A (please complete the following information)
- OS: linux
- Browser: firefox
- Version: 67
- Method of installation: composer
- Swagger-UI version: 3.20.7
- Swagger/OpenAPI version: OpenAPI 3.0
Content & configuration
Example Swagger/OpenAPI definition:
openapi: "3.0.0"
servers:
- url: https://myproject.development
paths:
/search-by-email:
get:
requestBody:
description: get info by email address
required: true
content:
application/json:
schema:
type: object
properties:
email:
type: string
example: [email protected]
Describe the bug you're encountering
As far as i understand the http specs, sending a body is also valid in a GET call.
Cause E-Mail Addresses are privacy relevant, we don't like to have it in the URL (as path part or query parameter).
This endpoint does not modify anything, so POST is not a correct method to do so.
Metadata
Metadata
Assignees
Labels
No labels