mirror of
https://github.com/go-gitea/gitea
synced 2025-07-22 18:28:37 +00:00
Update swagger documentation (#2899)
* Update swagger documentation Add docs for missing endpoints Add documentation for request parameters Make parameter naming consistent Fix response documentation * Restore delete comments
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user