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 summary: Returns baseData entries
description: description:
STATEMENTBEGIN STATEMENTBEGIN
SELECT Artikelcode, SELECT Artikelcode AS articleNumber,
Art, Art AS category,
bezeichnung bezeichnung AS description
FROM stammdaten FROM stammdaten
WHERE Artikelcode = @articleNumber WHERE Artikelcode = @articleNumber
STATEMENTEND STATEMENTEND
@ -114,15 +114,15 @@ paths:
type: string type: string
responses: responses:
200: 200:
description: Here are your productionOrder items description: Here are your baseData items
content: content:
application/json: application/json:
schema: schema:
type: array type: array
items: items:
$ref: "#/components/schemas/productionOrder" $ref: "#/components/schemas/baseData"
404: 404:
description: No such productionOrder entries available description: No such baseData entries available
components: components:
schemas: schemas:
@ -163,3 +163,13 @@ components:
type: string type: string
referenceDocument: referenceDocument:
type: string 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