Skip to content

Commit fa7c251

Browse files
committed
add swagger comment
1 parent 36df145 commit fa7c251

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

routers/api/v1/org/repo.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@ import (
88

99
// ListRepos list all of an organization's repositories.
1010
func ListRepos(ctx *context.APIContext) {
11+
// swagger:route GET /orgs/{org}/repos orgListRepos
12+
//
13+
// Produces:
14+
// - application/json
15+
//
16+
// Responses:
17+
// 200: RepositoryList
18+
// 500: error
19+
1120
var apiRepos []*api.Repository
1221
if ctx.User != nil {
1322
// Find all repos a user has access to within an org.

0 commit comments

Comments
 (0)