Skip to content

Commit 26af340

Browse files
davidsvantessontechknowlogick
authored andcommitted
Document possibility to limit API Repo search to topics only. (#7957)
Signed-off-by: David Svantesson <[email protected]>
1 parent ce45a8c commit 26af340

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

routers/api/v1/repo/repo.go

+4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ func Search(ctx *context.APIContext) {
5151
// in: query
5252
// description: keyword
5353
// type: string
54+
// - name: topic
55+
// in: query
56+
// description: Limit search to repositories with keyword as topic
57+
// type: boolean
5458
// - name: uid
5559
// in: query
5660
// description: search only for repos that the user with the given id owns or contributes to

templates/swagger/v1_json.tmpl

+6
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,12 @@
10931093
"name": "q",
10941094
"in": "query"
10951095
},
1096+
{
1097+
"type": "boolean",
1098+
"description": "Limit search to repositories with keyword as topic",
1099+
"name": "topic",
1100+
"in": "query"
1101+
},
10961102
{
10971103
"type": "integer",
10981104
"format": "int64",

0 commit comments

Comments
 (0)