diff --git a/plugins/zlux-agent/doc/swagger/fileapi.yaml b/plugins/zlux-agent/doc/swagger/fileapi.yaml index 3d75535e..c9eabd97 100644 --- a/plugins/zlux-agent/doc/swagger/fileapi.yaml +++ b/plugins/zlux-agent/doc/swagger/fileapi.yaml @@ -330,7 +330,45 @@ paths: Member membername could not be deleted DYNALLOC failure: DYNALLOC failed with RC = rc, DYN RC = rc, RSN = rsn, dsn={dataset}, (site) - + '/datasetCopy/{dataset}': + post: + summary: Copy a dataset and paste as a new one + tags: + - Dataset + parameters: + - name: dataset + in: path + description: Source dataset name + required: true + type: string + - name: newDataset + in: query + description: Target dataset name + required: true + type: string + produces: + - application/json + responses: + '201': + description: Successfully Copied Dataset + schema: + type: string + '400': + description: Invalid dataset path + schema: + type: string + examples: + Invalid dataset path: + Source dataset does not exist + '500': + description: Internal Server Error + schema: + type: string + examples: + DD Allocation Error: + Unable to allocate a DD for ACB + Unalloc error: + "error: ds unalloc dsn={dataset} dd=ddname, rc=rc sysRC=rc, sysRSN=rsn" '/VSAMdatasetContents/{dataset}': get: summary: Get a VSAM dataset diff --git a/test/yaml-loader/defaults.yaml b/test/yaml-loader/defaults.yaml index b48bf376..875a7343 100644 --- a/test/yaml-loader/defaults.yaml +++ b/test/yaml-loader/defaults.yaml @@ -95,6 +95,8 @@ components: method: '*' - url: '/datasetContents' method: '*' + - url: '/datasetCopy' + method: '*' - url: '/jes' method: '*' - url: '/VSAMdatasetContents'