CPS-781 Add examples for CPS-temporal 66/126166/1
authoremaclee <lee.anjella.macabuhay@est.tech>
Wed, 1 Dec 2021 13:54:04 +0000 (13:54 +0000)
committerLee Anjella Macabuhay <lee.anjella.macabuhay@est.tech>
Thu, 9 Dec 2021 14:30:34 +0000 (14:30 +0000)
Issue-ID: CPS-781
Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech>
Change-Id: Ic96df84f86b5ce17d79a69d5d46323fe6c8d8f92

openapi/swagger/openapi.yml

index 991d807..5b3578a 100644 (file)
@@ -51,6 +51,7 @@ paths:
           required: true
           schema:
             type: string
+            example: my-anchor
         - $ref: '#/components/parameters/observedTimestampAfter'
         - $ref: '#/components/parameters/simplePayloadFilter'
         - $ref: '#/components/parameters/pointInTime'
@@ -192,18 +193,30 @@ components:
         application/json:
           schema:
             $ref: '#/components/schemas/ErrorMessage'
+          example:
+            status: 400 BAD_REQUEST
+            message: Bad request error message
+            details: Bad request error details
     Unauthorized:
       description: Unauthorized
       content:
         application/json:
           schema:
             $ref: '#/components/schemas/ErrorMessage'
+          example:
+            status: 401
+            message: Unauthorized error message
+            details: Unauthorized error details
     Forbidden:
       description: Forbidden
       content:
         application/json:
           schema:
             $ref: '#/components/schemas/ErrorMessage'
+          example:
+            status: 403
+            message: Forbidden error message
+            details: Forbidden error details
   schemas:
     AnchorDetails:
       type: object