[TECHDEBT] Align CPS Temporal REST API Specification 56/127056/1
authorJosephKeenan <joseph.keenan@est.tech>
Thu, 10 Feb 2022 14:00:54 +0000 (14:00 +0000)
committerJosephKeenan <joseph.keenan@est.tech>
Thu, 10 Feb 2022 14:03:59 +0000 (14:03 +0000)
Issue-ID: CPS-825
Signed-off-by: JosephKeenan <joseph.keenan@est.tech>
Change-Id: Ibe0a2824c14646b28aec9558230d07fa75ce79f2

docs/_static/openapi/swagger/openapi.yml

index a96947b..7c7a10d 100644 (file)
@@ -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