aboutsummaryrefslogtreecommitdiffstats
path: root/templates/swagger
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-05-16 21:07:01 +0100
committerGitHub <noreply@github.com>2020-05-16 23:07:01 +0300
commitc86bc8e061b91d3d3778d9b97ba16e373250d8f6 (patch)
tree560fc03cd8647efb79a7c0cb4f5ee5e77b5f52d6 /templates/swagger
parentc3d9a5f8464e0921fc4063d903ecf2063fa152fa (diff)
downloadgitea-c86bc8e061b91d3d3778d9b97ba16e373250d8f6.tar.gz
gitea-c86bc8e061b91d3d3778d9b97ba16e373250d8f6.zip
Add paging and archive/private repository filtering to dashboard list (#11321)
* Add archived options to SearchRepository Signed-off-by: Andrew Thornton <art27@cantab.net> * Add only-private search Signed-off-by: Andrew Thornton <art27@cantab.net> * Add filter options and paging to dashboard repository page Signed-off-by: Andrew Thornton <art27@cantab.net> * swagger generate Signed-off-by: Andrew Thornton <art27@cantab.net> * fix-swagger-again Signed-off-by: Andrew Thornton <art27@cantab.net> * as per @mrsdizzie also remember state Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'templates/swagger')
-rw-r--r--templates/swagger/v1_json.tmpl12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 66a07419b1..a6b24ed970 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -1771,11 +1771,23 @@
},
{
"type": "boolean",
+ "description": "only include private repositories this user has access to (defaults to false)",
+ "name": "onlyPrivate",
+ "in": "query"
+ },
+ {
+ "type": "boolean",
"description": "include template repositories this user has access to (defaults to true)",
"name": "template",
"in": "query"
},
{
+ "type": "boolean",
+ "description": "show only archived, non-archived or all repositories (defaults to all)",
+ "name": "archived",
+ "in": "query"
+ },
+ {
"type": "string",
"description": "type of repository to search for. Supported values are \"fork\", \"source\", \"mirror\" and \"collaborative\"",
"name": "mode",