From: emaclee Date: Wed, 1 Dec 2021 13:54:04 +0000 (+0000) Subject: CPS-781 Add examples for CPS-temporal X-Git-Tag: 1.1.0~14 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=336dfaa28fe031d41f21f652d230eea34a4a21e5;p=cps%2Fcps-temporal.git CPS-781 Add examples for CPS-temporal Issue-ID: CPS-781 Signed-off-by: emaclee Change-Id: Ic96df84f86b5ce17d79a69d5d46323fe6c8d8f92 --- 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