From 336dfaa28fe031d41f21f652d230eea34a4a21e5 Mon Sep 17 00:00:00 2001 From: emaclee Date: Wed, 1 Dec 2021 13:54:04 +0000 Subject: CPS-781 Add examples for CPS-temporal Issue-ID: CPS-781 Signed-off-by: emaclee Change-Id: Ic96df84f86b5ce17d79a69d5d46323fe6c8d8f92 --- openapi/swagger/openapi.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'openapi') 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 -- cgit 1.2.3-korg