aboutsummaryrefslogtreecommitdiffstats
path: root/docs/_static/openapi
diff options
context:
space:
mode:
authorToine Siebelink <toine.siebelink@est.tech>2022-01-13 10:05:29 +0000
committerGerrit Code Review <gerrit@onap.org>2022-01-13 10:05:29 +0000
commitfc0ec237b82e0e80685de45c8db5741638e031d7 (patch)
treedd8e8f47eac918425777d573e1d388a3d67115a1 /docs/_static/openapi
parent38e50f6f932ab170203362ed6513d41f0e2d9b0f (diff)
parentcb23b1771e3fc552090f80791b852ce8ad05f150 (diff)
Merge "Support operation field for CPS Temporal Query Output API"
Diffstat (limited to 'docs/_static/openapi')
-rw-r--r--docs/_static/openapi/swagger/openapi.yml19
1 files changed, 18 insertions, 1 deletions
diff --git a/docs/_static/openapi/swagger/openapi.yml b/docs/_static/openapi/swagger/openapi.yml
index 991d807..a96947b 100644
--- a/docs/_static/openapi/swagger/openapi.yml
+++ b/docs/_static/openapi/swagger/openapi.yml
@@ -1,5 +1,5 @@
# ============LICENSE_START=======================================================
-# Copyright (c) 2021 Bell Canada.
+# Copyright (c) 2021-2022 Bell Canada.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -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
+ 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
@@ -212,6 +225,10 @@ components:
observedTimestamp:
type: string
example: '2021-03-21T00:00:00.000-0000'
+ operation:
+ type: string
+ enum: [CREATE, UPDATE, DELETE]
+ example: UPDATE
dataspace:
type: string
example: 'my-dataspace'