From 23f333f1fa2d4dd7dfa7584160db25554f0e34c7 Mon Sep 17 00:00:00 2001 From: Mike Lueders Date: Mon, 1 Apr 2024 14:40:39 -0500 Subject: [PATCH] add simple request body --- openapi.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/openapi.yaml b/openapi.yaml index 346bd5f..42e4860 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -12,6 +12,11 @@ paths: operationId: Example parameters: - $ref: "#/components/parameters/HeaderParam" + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExampleBody' responses: '200': description: example @@ -24,3 +29,9 @@ components: schema: type: string responses: {} + schemas: + ExampleBody: + type: object + properties: + field: + type: string