Skip to content

Commit

Permalink
fix: changed openApi docs to introduce new error code 409 for device …
Browse files Browse the repository at this point in the history
…management requests
  • Loading branch information
angelo.andreussi committed Jun 12, 2024
1 parent 901f997 commit b8ec113
Show file tree
Hide file tree
Showing 39 changed files with 112 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -80,5 +80,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
post:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -257,5 +257,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
/{scopeId}/devices/{deviceId}/keystore/items:
Expand Down Expand Up @@ -74,6 +76,8 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
/{scopeId}/devices/{deviceId}/keystore/item:
Expand Down Expand Up @@ -113,6 +117,8 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
delete:
Expand Down Expand Up @@ -147,6 +153,8 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
/{scopeId}/devices/{deviceId}/keystore/items/certificateInfo:
Expand Down Expand Up @@ -175,6 +183,8 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
/{scopeId}/devices/{deviceId}/keystore/items/certificateRaw:
Expand Down Expand Up @@ -203,6 +213,8 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
/{scopeId}/devices/{deviceId}/keystore/items/keypair:
Expand Down Expand Up @@ -231,6 +243,8 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
/{scopeId}/devices/{deviceId}/keystore/items/csr:
Expand Down Expand Up @@ -263,5 +277,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/unauthenticated'
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ paths:
403:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
409:
$ref: '../openapi.yaml#/components/responses/entityUniqueness'
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ paths:
$ref: '../openapi.yaml#/components/responses/subjectUnauthorized'
404:
$ref: '../openapi.yaml#/components/responses/entityNotFound'
409:
$ref: '../openapi.yaml#/components/responses/conflictDeviceNotConnected'
500:
$ref: '../openapi.yaml#/components/responses/kapuaError'
Loading

0 comments on commit b8ec113

Please sign in to comment.