From 0cf2ef8a2bc3a80f30461d87d12582d1d04b8604 Mon Sep 17 00:00:00 2001 From: Wenkai Yin Date: Thu, 11 May 2017 17:34:08 +0800 Subject: [PATCH] update --- docs/swagger.yaml | 47 ++++++++++++++++++++++++----------------------- 1 file changed, 24 insertions(+), 23 deletions(-) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index 5161d3048..55a08ecc1 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -697,6 +697,30 @@ paths: description: Project ID does not exist. 500: description: Unexpected internal errors. + /repositories/{repo_name}: + delete: + summary: Delete a repository. + description: | + This endpoint let user delete a repository with name. + parameters: + - name: repo_name + in: path + type: string + required: true + description: The name of repository which will be deleted. + tags: + - Products + responses: + 200: + description: Delete successfully. + 400: + description: Invalid repo_name. + 401: + description: Unauthorized. + 404: + description: Repository not found. + 403: + description: Forbidden. /repositories/{repo_name}/tags/{tag}: delete: summary: Delete a tag in a repository. @@ -748,29 +772,6 @@ paths: $ref: '#/definitions/DetailedTag' 500: description: Unexpected internal errors. - delete: - summary: Delete all tags of a repository. - description: | - This endpoint let user delete all tags with repo name. - parameters: - - name: repo_name - in: path - type: string - required: true - description: The name of repository which will be deleted. - tags: - - Products - responses: - 200: - description: Delete successfully. - 400: - description: Invalid repo_name. - 401: - description: Unauthorized. - 404: - description: Repository not found. - 403: - description: Forbidden. /repositories/{repo_name}/tags/{tag}/manifest: get: summary: Get manifests of a relevant repository.