From 634a09c5815b657538b48a259e900cf1ca5c2da7 Mon Sep 17 00:00:00 2001 From: Wolfgang Ludger Hottgenroth Date: Tue, 30 Nov 2021 19:24:06 +0100 Subject: [PATCH] baseData query --- openapi.yaml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/openapi.yaml b/openapi.yaml index a6e965e..259524b 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -100,9 +100,9 @@ paths: summary: Returns baseData entries description: STATEMENTBEGIN - SELECT Artikelcode, - Art, - bezeichnung + SELECT Artikelcode AS articleNumber, + Art AS category, + bezeichnung AS description FROM stammdaten WHERE Artikelcode = @articleNumber STATEMENTEND @@ -114,15 +114,15 @@ paths: type: string responses: 200: - description: Here are your productionOrder items + description: Here are your baseData items content: application/json: schema: type: array items: - $ref: "#/components/schemas/productionOrder" + $ref: "#/components/schemas/baseData" 404: - description: No such productionOrder entries available + description: No such baseData entries available components: schemas: @@ -163,3 +163,13 @@ components: type: string referenceDocument: type: string + baseData: + description: Selecting columns of the stammdaten table from pdb_el + type: object + properties: + articleNumber: + type: string + category: + type: string + description: + type: string