Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating the swagger w/ datasetcopy api #484

Open
wants to merge 2 commits into
base: v2.x/staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion plugins/zlux-agent/doc/swagger/fileapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,41 @@ 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: newDataset
in: query
description: Name of the new dataset created after copy operation
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
Expand Down
2 changes: 2 additions & 0 deletions test/yaml-loader/defaults.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ components:
method: '*'
- url: '/datasetContents'
method: '*'
- url: '/datasetCopy'
method: '*'
- url: '/jes'
method: '*'
- url: '/VSAMdatasetContents'
Expand Down