From 052d44a21861ef580e6306b523ced6891b2aee7d Mon Sep 17 00:00:00 2001 From: wy65701436 Date: Sun, 4 Sep 2016 22:13:54 -0700 Subject: [PATCH] update API doc for sync registry. --- docs/swagger.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/swagger.yaml b/docs/swagger.yaml index c979e05..b22ff86 100644 --- a/docs/swagger.yaml +++ b/docs/swagger.yaml @@ -1271,6 +1271,22 @@ paths: description: Replication's target not found 500: description: Unexpected internal errors. + /internal/syncregistry: + post: + summary: Sync repositories from registry to DB. + description: | + This endpoint is for syncing all repositories of registry with database. + tags: + - Products + responses: + 200: + description: Sync repositories successfully. + 401: + description: User need to log in first. + 403: + description: User does not have permission of admin role. + 500: + description: Unexpected internal errors. definitions: Search: type: object