From 9105bb6641d604834c9b279334ed6261e323b367 Mon Sep 17 00:00:00 2001 From: wang yan Date: Tue, 6 Nov 2018 13:38:53 +0800 Subject: [PATCH] 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 --- docs/swagger.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 1c1ebc033..d2fc1211c 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -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.