summaryrefslogtreecommitdiffstats
path: root/cps-rest/docs/openapi/components.yml
diff options
context:
space:
mode:
authorJoseph Keenan <joseph.keenan@est.tech>2022-12-21 11:42:39 +0000
committerGerrit Code Review <gerrit@onap.org>2022-12-21 11:42:39 +0000
commit482b6745fea99c6af3a776bc8660ac914aa5c2b8 (patch)
tree68b47e85d92f2b88f4f54df257b0e327723a9531 /cps-rest/docs/openapi/components.yml
parent92d9116dfff9898279adcaef529301136f5e8177 (diff)
parent897686f96f49dc4405eb3e29f2a6218dc8040c97 (diff)
Merge "API versioning supported and added different versions for POST APIs"
Diffstat (limited to 'cps-rest/docs/openapi/components.yml')
-rw-r--r--cps-rest/docs/openapi/components.yml11
1 files changed, 11 insertions, 0 deletions
diff --git a/cps-rest/docs/openapi/components.yml b/cps-rest/docs/openapi/components.yml
index fb0947e54..4f138fc89 100644
--- a/cps-rest/docs/openapi/components.yml
+++ b/cps-rest/docs/openapi/components.yml
@@ -211,6 +211,15 @@ components:
schema:
type: string
example: '2021-03-21T00:10:34.030-0100'
+ apiVersionInPath:
+ name: apiVersion
+ in: path
+ description: apiVersion
+ required: true
+ schema:
+ type: string
+ enum: [v1, v2]
+ default: v2
responses:
NotFound:
@@ -279,6 +288,8 @@ components:
schema:
type: string
example: my-resource
+ CreatedV2:
+ description: Created without response body
InternalServerError:
description: Internal Server Error
content: