baseData query

This commit is contained in:
2021-11-30 19:24:06 +01:00
parent fa6ed8b0a4
commit 634a09c581

View File

@ -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