summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2017-11-15 00:10:26 -0800
committerLunny Xiao <xiaolunwen@gmail.com>2017-11-15 16:10:26 +0800
commitd22a8dc022d51f9cbe8bfd8eb72e3a0e3245c543 (patch)
treec49b89b6e9b4084b9e1731783ebe7d1ea2451810 /public
parenta30cc637c6d9d73426022ab3eeb6ca4141232c7d (diff)
downloadgitea-d22a8dc022d51f9cbe8bfd8eb72e3a0e3245c543.tar.gz
gitea-d22a8dc022d51f9cbe8bfd8eb72e3a0e3245c543.zip
Page parameter for repo search API (#2915)
Diffstat (limited to 'public')
-rw-r--r--public/swagger.v1.json12
1 files changed, 9 insertions, 3 deletions
diff --git a/public/swagger.v1.json b/public/swagger.v1.json
index 4f4505b4a1..82370e49e2 100644
--- a/public/swagger.v1.json
+++ b/public/swagger.v1.json
@@ -849,13 +849,19 @@
},
{
"type": "integer",
- "description": "if provided, will return only repos owned by the user with the given id",
+ "description": "search only for repos that the user with the given id owns or contributes to",
"name": "uid",
"in": "query"
},
{
"type": "integer",
- "description": "maximum number of repos to return",
+ "description": "page number of results to return (1-based)",
+ "name": "page",
+ "in": "query"
+ },
+ {
+ "type": "integer",
+ "description": "page size of results, maximum page size is 50",
"name": "limit",
"in": "query"
},
@@ -867,7 +873,7 @@
},
{
"type": "boolean",
- "description": "only search for repositories owned by the authenticated user",
+ "description": "if `uid` is given, search only for repos that the user owns",
"name": "exclusive",
"in": "query"
}