Skip to content

Commit

Permalink
Add 424 responses to all requests that can request acknowledgements.
Browse files Browse the repository at this point in the history
Signed-off-by: Yufei Cai <yufei.cai@bosch.io>
  • Loading branch information
yufei-cai committed Aug 8, 2021
1 parent 6920365 commit a132e23
Show file tree
Hide file tree
Showing 14 changed files with 193 additions and 49 deletions.
148 changes: 110 additions & 38 deletions documentation/src/main/resources/openapi/ditto-api-2.yml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ put:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
content:
application/json:
Expand Down Expand Up @@ -217,6 +219,8 @@ patch:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
content:
application/merge-patch+json:
Expand Down Expand Up @@ -280,4 +284,6 @@ delete:
schema:
$ref: '../../schemas/errors/advancedError.yml'
'412':
$ref: '../../responses/preconditionFailed.yml'
$ref: '../../responses/preconditionFailed.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ put:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
content:
application/json:
Expand Down Expand Up @@ -235,6 +237,8 @@ patch:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
content:
application/merge-patch+json:
Expand Down Expand Up @@ -306,4 +310,6 @@ delete:
schema:
$ref: '../../schemas/errors/advancedError.yml'
'412':
$ref: '../../responses/preconditionFailed.yml'
$ref: '../../responses/preconditionFailed.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ put:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
$ref: '../../requests/value.yml'
patch:
Expand Down Expand Up @@ -215,6 +217,8 @@ patch:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
$ref: '../../requests/patchValue.yml'
delete:
Expand Down Expand Up @@ -276,4 +280,6 @@ delete:
schema:
$ref: '../../schemas/errors/advancedError.yml'
'412':
$ref: '../../responses/preconditionFailed.yml'
$ref: '../../responses/preconditionFailed.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ put:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
content:
application/json:
Expand Down Expand Up @@ -260,6 +262,8 @@ patch:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
content:
application/merge-patch+json:
Expand Down Expand Up @@ -327,4 +331,6 @@ delete:
schema:
$ref: '../../schemas/errors/advancedError.yml'
'412':
$ref: '../../responses/preconditionFailed.yml'
$ref: '../../responses/preconditionFailed.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,8 @@ put:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
content:
application/json:
Expand Down Expand Up @@ -324,6 +326,8 @@ patch:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
content:
application/merge-patch+json:
Expand Down Expand Up @@ -397,4 +401,6 @@ delete:
schema:
$ref: '../../schemas/errors/advancedError.yml'
'412':
$ref: '../../responses/preconditionFailed.yml'
$ref: '../../responses/preconditionFailed.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ put:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
content:
application/json:
Expand Down Expand Up @@ -228,6 +230,8 @@ patch:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
content:
application/merge-patch+json:
Expand Down Expand Up @@ -299,4 +303,6 @@ delete:
schema:
$ref: '../../schemas/errors/advancedError.yml'
'412':
$ref: '../../responses/preconditionFailed.yml'
$ref: '../../responses/preconditionFailed.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ put:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
$ref: '../../requests/value.yml'
patch:
Expand Down Expand Up @@ -215,6 +217,8 @@ patch:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
$ref: '../../requests/patchValue.yml'
delete:
Expand Down Expand Up @@ -273,4 +277,6 @@ delete:
schema:
$ref: '../../schemas/errors/advancedError.yml'
'412':
$ref: '../../responses/preconditionFailed.yml'
$ref: '../../responses/preconditionFailed.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ put:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
$ref: '../../requests/value.yml'
patch:
Expand Down Expand Up @@ -216,6 +218,8 @@ patch:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
$ref: '../../requests/patchValue.yml'
delete:
Expand Down Expand Up @@ -272,4 +276,6 @@ delete:
schema:
$ref: '../../schemas/errors/advancedError.yml'
'412':
$ref: '../../responses/preconditionFailed.yml'
$ref: '../../responses/preconditionFailed.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ put:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
$ref: '../../requests/attributes.yml'
patch:
Expand Down Expand Up @@ -204,6 +206,8 @@ patch:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
content:
application/merge-patch+json:
Expand Down Expand Up @@ -271,4 +275,6 @@ delete:
schema:
$ref: '../../schemas/errors/advancedError.yml'
'412':
$ref: '../../responses/preconditionFailed.yml'
$ref: '../../responses/preconditionFailed.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ put:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
$ref: '../../requests/definition.yml'
patch:
Expand Down Expand Up @@ -216,6 +218,8 @@ patch:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
content:
application/merge-patch+json:
Expand Down Expand Up @@ -279,4 +283,6 @@ delete:
schema:
$ref: '../../schemas/errors/advancedError.yml'
'412':
$ref: '../../responses/preconditionFailed.yml'
$ref: '../../responses/preconditionFailed.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,8 @@ post:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
content:
application/json:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ put:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
content:
application/json:
Expand Down Expand Up @@ -177,6 +179,8 @@ patch:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
content:
application/merge-patch+json:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ put:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
content:
application/json:
Expand Down Expand Up @@ -489,6 +491,8 @@ patch:
$ref: '../../responses/preconditionFailed.yml'
'413':
$ref: '../../responses/entityTooLarge.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'
requestBody:
content:
application/merge-patch+json:
Expand Down Expand Up @@ -555,4 +559,6 @@ delete:
schema:
$ref: '../../schemas/errors/advancedError.yml'
'412':
$ref: '../../responses/preconditionFailed.yml'
$ref: '../../responses/preconditionFailed.yml'
'424':
$ref: '../../responses/dependencyFailed.yml'

0 comments on commit a132e23

Please sign in to comment.