summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosephKeenan <joseph.keenan@est.tech>2022-02-10 14:00:54 +0000
committerJosephKeenan <joseph.keenan@est.tech>2022-02-10 14:03:59 +0000
commit986d2f8ff21e63cbfa2300ac54c19957334be781 (patch)
tree1e4d5ec7d6545c09aff5c89e7dcc53155db4c0e8
parented024de082a1048a94261dbbfa1f4a56180faf25 (diff)
[TECHDEBT] Align CPS Temporal REST API Specification
Issue-ID: CPS-825 Signed-off-by: JosephKeenan <joseph.keenan@est.tech> Change-Id: Ibe0a2824c14646b28aec9558230d07fa75ce79f2
-rw-r--r--docs/_static/openapi/swagger/openapi.yml16
1 files changed, 14 insertions, 2 deletions
diff --git a/docs/_static/openapi/swagger/openapi.yml b/docs/_static/openapi/swagger/openapi.yml
index a96947b..7c7a10d 100644
--- a/docs/_static/openapi/swagger/openapi.yml
+++ b/docs/_static/openapi/swagger/openapi.yml
@@ -75,14 +75,14 @@ paths:
anchor: my-anchor
data:
status: UP
-
-
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
+ '500':
+ $ref: '#/components/responses/InternalServerError'
'/v1/dataspaces/{dataspace-name}/anchors/history':
get:
description: 'Read anchors data based on filter criteria provided in query parameters'
@@ -128,6 +128,8 @@ paths:
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
+ '500':
+ $ref: '#/components/responses/InternalServerError'
components:
parameters:
dataspaceName:
@@ -217,6 +219,16 @@ components:
status: 403
message: Forbidden error message
details: Forbidden error details
+ InternalServerError:
+ description: Internal Server Error
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/ErrorMessage"
+ example:
+ status: 500
+ message: Internal Server Error
+ details: Internal Server Error occurred
schemas:
AnchorDetails:
type: object