From 890e76761e63d8b34ad13700ece44db7b6e9579d Mon Sep 17 00:00:00 2001 From: sayo-o518 <209420449+sayo-o518@users.noreply.github.com> Date: Fri, 8 May 2026 02:00:08 +0000 Subject: [PATCH] Update OpenAPI schema from dotto-typespec --- openapi/external/funch_api/openapi.yaml | 46 +++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/openapi/external/funch_api/openapi.yaml b/openapi/external/funch_api/openapi.yaml index a45bc6e..8ef1a7b 100644 --- a/openapi/external/funch_api/openapi.yaml +++ b/openapi/external/funch_api/openapi.yaml @@ -33,6 +33,29 @@ paths: - menuItems tags: - MenuItems + post: + operationId: MenuItemsV1_create + parameters: [] + responses: + '201': + description: The request has succeeded and a new resource has been created as a result. + content: + application/json: + schema: + type: object + properties: + menuItem: + $ref: '#/components/schemas/MenuItem' + required: + - menuItem + tags: + - MenuItems + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/MenuItemRequest' components: schemas: Category: @@ -69,6 +92,29 @@ components: type: array items: $ref: '#/components/schemas/Price' + MenuItemRequest: + type: object + required: + - date + - name + - imageUrl + - category + - prices + properties: + date: + type: string + format: date + name: + type: string + imageUrl: + type: string + format: uri + category: + $ref: '#/components/schemas/Category' + prices: + type: array + items: + $ref: '#/components/schemas/Price' Price: type: object required: