Fix issues on swagger file

1, Add the delete of replication policy.
2, Fix Semantic error at paths./repositories/{repo_name}/tags

Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
wang yan 2018-11-06 13:38:53 +08:00
parent e37e275a77
commit 9105bb6641

View File

@ -1139,6 +1139,11 @@ paths:
This endpoint tags an existing image with another tag in this repo, source images This endpoint tags an existing image with another tag in this repo, source images
can be in different repos or projects. can be in different repos or projects.
parameters: parameters:
- name: repo_name
in: path
type: string
required: true
description: Relevant repository name.
- name: request - name: request
in: body in: body
description: Request to give source image and target tag. description: Request to give source image and target tag.
@ -1789,6 +1794,30 @@ paths:
description: Policy name already used or policy already exists with the same project and target. description: Policy name already used or policy already exists with the same project and target.
'500': '500':
description: Unexpected internal errors. description: Unexpected internal errors.
delete:
summary: Delete the replication policy specified by ID.
description: |
Delete the replication policy specified by ID.
parameters:
- name: id
in: path
type: integer
format: int64
required: true
description: Replication policy ID
tags:
- Products
responses:
'200':
description: Delete successfully.
'400':
description: Invalid parameters.
'401':
description: User need to log in first.
'404':
description: The resource does not exist.
'500':
description: Unexpected internal errors.
/labels: /labels:
get: get:
summary: List labels according to the query strings. summary: List labels according to the query strings.