From 0161e46b5a1a60b9e5a20438c5b67ca84dce5861 Mon Sep 17 00:00:00 2001 From: Jonas Östanbäck Date: Fri, 19 May 2017 02:20:06 +0200 Subject: Add swagger comment for MirrorSync (#1747) * Add swagger comment for MirrorSync * Generate swagger.v1.json --- routers/api/v1/repo/repo.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'routers') diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index 83b1dbd26b..da4034a0d4 100644 --- a/routers/api/v1/repo/repo.go +++ b/routers/api/v1/repo/repo.go @@ -337,6 +337,15 @@ func Delete(ctx *context.APIContext) { // MirrorSync adds a mirrored repository to the sync queue func MirrorSync(ctx *context.APIContext) { + // swagger:route POST /repos/{username}/{reponame}/mirror-sync repoMirrorSync + // + // Produces: + // - application/json + // + // Responses: + // 200: empty + // 403: forbidden + repo := ctx.Repo.Repository if !ctx.Repo.IsWriter() { -- cgit v1.2.3