Merge pull request #6222 from wy65701436/fix-swagger-delete

Fix issues on swagger file
This commit is contained in:
Wenkai Yin 2018-11-06 14:47:33 +08:00 committed by GitHub
commit 4d829117de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1139,6 +1139,11 @@ paths:
This endpoint tags an existing image with another tag in this repo, source images
can be in different repos or projects.
parameters:
- name: repo_name
in: path
type: string
required: true
description: Relevant repository name.
- name: request
in: body
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.
'500':
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:
get:
summary: List labels according to the query strings.