diff options
-rw-r--r-- | routers/api/v1/repo/repo.go | 4 | ||||
-rw-r--r-- | templates/swagger/v1_json.tmpl | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/routers/api/v1/repo/repo.go b/routers/api/v1/repo/repo.go index 5fe41927fa..4afe1661d0 100644 --- a/routers/api/v1/repo/repo.go +++ b/routers/api/v1/repo/repo.go @@ -51,6 +51,10 @@ func Search(ctx *context.APIContext) { // in: query // description: keyword // type: string + // - name: topic + // in: query + // description: Limit search to repositories with keyword as topic + // type: boolean // - name: uid // in: query // description: search only for repos that the user with the given id owns or contributes to diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 2d5f8c5c9c..ee05345697 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -1094,6 +1094,12 @@ "in": "query" }, { + "type": "boolean", + "description": "Limit search to repositories with keyword as topic", + "name": "topic", + "in": "query" + }, + { "type": "integer", "format": "int64", "description": "search only for repos that the user with the given id owns or contributes to", |