This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
论坛
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
Document possibility to limit API Repo search to topics only. (
#7957
)
Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
tags/v1.21.12.1
David Svantesson
techknowlogick
6 years ago
parent
ce45a8c257
commit
26af3401c3
2 changed files
with
10 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
routers/api/v1/repo/repo.go
+6
-0
templates/swagger/v1_json.tmpl
+ 4
- 0
routers/api/v1/repo/repo.go
View File
@@ -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
+ 6
- 0
templates/swagger/v1_json.tmpl
View File
@@ -1093,6 +1093,12 @@
"name": "q",
"in": "query"
},
{
"type": "boolean",
"description": "Limit search to repositories with keyword as topic",
"name": "topic",
"in": "query"
},
{
"type": "integer",
"format": "int64",
Write
Preview
Loading…
Cancel
Save