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