summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-01-12 16:43:44 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2020-01-12 23:43:44 +0800
commit10055bd2b1d18d3ccbec78cbc213e459ddb75804 (patch)
tree0c3aacafab3f852a0509c4dcd2055aa93e36c0c3 /templates
parent497e15fdc28518ab03e2f1114fb112b8c0630e18 (diff)
downloadgitea-10055bd2b1d18d3ccbec78cbc213e459ddb75804.tar.gz
gitea-10055bd2b1d18d3ccbec78cbc213e459ddb75804.zip
[API] add GET /orgs endpoint (#9560)
* introduce `GET /orgs` * add TEST * show also other VisibleType's * update description * refactor a lot * SearchUserOptions by default return only public
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl29
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index ddf144066d..de774de9fb 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -606,6 +606,35 @@
}
},
"/orgs": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "organization"
+ ],
+ "summary": "Get list of organizations",
+ "operationId": "orgGetAll",
+ "parameters": [
+ {
+ "type": "integer",
+ "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"
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/OrganizationList"
+ }
+ }
+ },
"post": {
"consumes": [
"application/json"