1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-22 12:54:53 -05:00

Document possibility to limit API Repo search to topics only. (#7957)

Signed-off-by: David Svantesson <davidsvantesson@gmail.com>
This commit is contained in:
David Svantesson 2019-08-24 05:17:10 +02:00 committed by techknowlogick
parent ce45a8c257
commit 26af3401c3
2 changed files with 10 additions and 0 deletions

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

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",