summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo/star.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/repo/star.go')
-rw-r--r--routers/api/v1/repo/star.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/routers/api/v1/repo/star.go b/routers/api/v1/repo/star.go
index 20e7e4e508..3500eaf421 100644
--- a/routers/api/v1/repo/star.go
+++ b/routers/api/v1/repo/star.go
@@ -12,6 +12,25 @@ import (
// ListStargazers list a repository's stargazers
func ListStargazers(ctx *context.APIContext) {
+ // swagger:operation GET /repos/{owner}/{repo}/stargazers repository repoListStargazers
+ // ---
+ // summary: List a repo's stargazers
+ // produces:
+ // - application/json
+ // parameters:
+ // - name: owner
+ // in: path
+ // description: owner of the repo
+ // type: string
+ // required: true
+ // - name: repo
+ // in: path
+ // description: name of the repo
+ // type: string
+ // required: true
+ // responses:
+ // "200":
+ // "$ref": "#/responses/UserList"
stargazers, err := ctx.Repo.Repository.GetStargazers(-1)
if err != nil {
ctx.Error(500, "GetStargazers", err)