summaryrefslogtreecommitdiffstats
path: root/public/swagger.v1.json
diff options
context:
space:
mode:
authorMorlinest <morlinest@gmail.com>2017-10-26 23:16:13 +0200
committerLauris BH <lauris@nix.lv>2017-10-27 00:16:13 +0300
commitddb7f59ef414ffad8dc2485055c246aaea0507d7 (patch)
tree1e0f10f02b05896a43f609dd91a29d727e1b4a2a /public/swagger.v1.json
parent4d01ecaef350c6df0c27913f05cc0537bed5f7e9 (diff)
downloadgitea-ddb7f59ef414ffad8dc2485055c246aaea0507d7.tar.gz
gitea-ddb7f59ef414ffad8dc2485055c246aaea0507d7.zip
Add search mode option to /api/repo/search (#2756)
* Add repo type option to /api/repo/search * Add tests and fix result of collaborative filter in specific condition * Fix/optimize search & tests * Improve integration tests * Fix lint errors * Fix unit tests * Change and improve internal implementation of repo search * Use NonexistentID * Make search api more general * Change mirror and fork search behaviour * Fix tests & typo in comment
Diffstat (limited to 'public/swagger.v1.json')
-rw-r--r--public/swagger.v1.json19
1 files changed, 18 insertions, 1 deletions
diff --git a/public/swagger.v1.json b/public/swagger.v1.json
index e640b4e831..c269fcb864 100644
--- a/public/swagger.v1.json
+++ b/public/swagger.v1.json
@@ -1102,7 +1102,7 @@
"type": "integer",
"format": "int64",
"x-go-name": "OwnerID",
- "description": "Owner in we search search",
+ "description": "Repository owner to search",
"name": "uid",
"in": "query"
},
@@ -1113,12 +1113,29 @@
"description": "Limit of result\n\nmaximum: setting.ExplorePagingNum",
"name": "limit",
"in": "query"
+ },
+ {
+ "type": "string",
+ "x-go-name": "SearchMode",
+ "description": "Type of repository to search, related to owner",
+ "name": "mode",
+ "in": "query"
+ },
+ {
+ "type": "boolean",
+ "x-go-name": "OwnerExclusive",
+ "description": "Search only owners repositories\nHas effect only if owner is provided and mode is not \"collaborative\"",
+ "name": "exclusive",
+ "in": "query"
}
],
"responses": {
"200": {
"$ref": "#/responses/SearchResults"
},
+ "422": {
+ "$ref": "#/responses/validationError"
+ },
"500": {
"$ref": "#/responses/SearchError"
}