From 559879c5bfc3b0900f927a4f6d2892e9f969eaa2 Mon Sep 17 00:00:00 2001 From: Nilesh Date: Tue, 18 Aug 2026 01:19:16 +0530 Subject: [PATCH] Added specification for single menu item --- openapi/paths/menu_{menuItemId}.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/openapi/paths/menu_{menuItemId}.yaml b/openapi/paths/menu_{menuItemId}.yaml index d7caa01..857d736 100644 --- a/openapi/paths/menu_{menuItemId}.yaml +++ b/openapi/paths/menu_{menuItemId}.yaml @@ -1,5 +1,26 @@ parameters: - $ref: ../components/parameters/MenuItemId.yaml +get: + tags: + - Products + summary: Get a menu item + description: Get a menu item by its menu item id. + operationId: getMenuItem + security: [] + responses: + '200': + description: Successful fetched menu item. + content: + application/json: + schema: + $ref: ../components/schemas/MenuItem.yaml + '400': + $ref: ../components/responses/BadRequest.yaml + '404': + $ref: ../components/responses/NotFound.yaml + '500': + $ref: ../components/responses/InternalServerError.yaml + delete: tags: - Products @@ -22,3 +43,4 @@ delete: $ref: ../components/responses/NotFound.yaml '500': $ref: ../components/responses/InternalServerError.yaml +