1
0

POST to /api/customers response 200 -> 201

This commit is contained in:
Michael Hoennig
2022-08-13 14:58:19 +02:00
parent 8529ec9949
commit c03697ccd9
3 changed files with 18 additions and 6 deletions

View File

@ -19,6 +19,9 @@ paths:
/api/rbac-roles:
$ref: "./api-definition/rbac-roles.yaml"
/api/rbac-grants:
$ref: "./api-definition/rbac-grants.yaml"
# HS
/api/customers:

View File

@ -42,8 +42,8 @@ post:
$ref: './api-definition/api-definition/hs-customer-schemas.yaml#/components/schemas/Customer'
required: true
responses:
"200":
description: OK
"201":
description: Created
content:
'application/json':
schema:
@ -52,3 +52,5 @@ post:
$ref: './api-definition/error-responses.yaml#/components/responses/Unauthorized'
"403":
$ref: './api-definition/error-responses.yaml#/components/responses/Forbidden'
"409":
$ref: './api-definition/error-responses.yaml#/components/responses/Conflict'