diff options
author | rajesh.kumar <rk00747546@techmahindra.com> | 2022-12-14 08:13:29 +0000 |
---|---|---|
committer | rajesh.kumar <rk00747546@techmahindra.com> | 2022-12-16 16:30:34 +0000 |
commit | 897686f96f49dc4405eb3e29f2a6218dc8040c97 (patch) | |
tree | 5912aec524fbe010bbf94bfb192caf1f079b7887 /cps-rest/docs/openapi/components.yml | |
parent | 377af14ab2664d8a15673e51cba82f1254379e14 (diff) |
API versioning supported and added different versions for POST APIs
Issue-ID: CPS-1189
Change-ID: I73f97f986a817d423f92f8d922dcd9647b1214aa
Signed-off-by: rajesh.kumar <rk00747546@techmahindra.com>
Diffstat (limited to 'cps-rest/docs/openapi/components.yml')
-rw-r--r-- | cps-rest/docs/openapi/components.yml | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cps-rest/docs/openapi/components.yml b/cps-rest/docs/openapi/components.yml index fb0947e54a..4f138fc898 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: |