From 08bf443016bae30690417b4835076709ef36e3b0 Mon Sep 17 00:00:00 2001 From: Lauris BH <lauris@nix.lv> Date: Tue, 27 Nov 2018 23:52:20 +0200 Subject: Implement git refs API for listing references (branches, tags and other) (#5354) * Inital routes to git refs api * Git refs API implementation * Update swagger * Fix copyright * Make swagger happy add basic test * Fix test * Fix test again :) --- routers/api/v1/swagger/repo.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'routers/api/v1/swagger') diff --git a/routers/api/v1/swagger/repo.go b/routers/api/v1/swagger/repo.go index 9decc8f588..3e3b0ff5a4 100644 --- a/routers/api/v1/swagger/repo.go +++ b/routers/api/v1/swagger/repo.go @@ -36,6 +36,20 @@ type swaggerResponseBranchList struct { Body []api.Branch `json:"body"` } +// Reference +// swagger:response Reference +type swaggerResponseReference struct { + // in:body + Body api.Reference `json:"body"` +} + +// ReferenceList +// swagger:response ReferenceList +type swaggerResponseReferenceList struct { + // in:body + Body []api.Reference `json:"body"` +} + // Hook // swagger:response Hook type swaggerResponseHook struct { -- cgit v1.2.3