errorObjectStuff

This commit is contained in:
Wolfgang Ludger Hottgenroth 2021-12-02 09:26:27 +01:00
parent 634a09c581
commit a3c1bc99d8
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

View File

@ -91,8 +91,12 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/productionOrder"
404:
description: No such productionOrder entries available
400:
description: There is something wrong with the data you sent, look into the response object for details
content:
application/json:
schema:
$ref: "#/components/schemas/errorResultObject"
/pdb/v2/baseData/{articleNumber}:
get:
tags: [ "Regular" ]
@ -126,6 +130,21 @@ paths:
components:
schemas:
errorResultObject:
description: Object returned in case of an error
properties:
errorCode:
description: repeat the http error code
type: integer
serviceErrorCode:
description: service-specific error code
type: integer
errorMessage:
description: human-readable error message
type: string
errorInfoURL:
description: URL to some more information on the error
type: string
test1:
description: A test1 item
type: object