aboutsummaryrefslogtreecommitdiffstats
path: root/openapi
diff options
context:
space:
mode:
authoremaclee <lee.anjella.macabuhay@est.tech>2021-12-01 13:54:04 +0000
committerLee Anjella Macabuhay <lee.anjella.macabuhay@est.tech>2021-12-09 14:30:34 +0000
commit336dfaa28fe031d41f21f652d230eea34a4a21e5 (patch)
treee019ecdf4567193a0778cd8a4b6eec1e5cc7d5f8 /openapi
parent13483eacf395cae83239dd0f17114986b9476d19 (diff)
CPS-781 Add examples for CPS-temporal
Issue-ID: CPS-781 Signed-off-by: emaclee <lee.anjella.macabuhay@est.tech> Change-Id: Ic96df84f86b5ce17d79a69d5d46323fe6c8d8f92
Diffstat (limited to 'openapi')
-rw-r--r--openapi/swagger/openapi.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/openapi/swagger/openapi.yml b/openapi/swagger/openapi.yml
index 991d807..5b3578a 100644
--- a/openapi/swagger/openapi.yml
+++ b/openapi/swagger/openapi.yml
@@ -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