summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorShashvat Kedia <sk261@snu.edu.in>2018-12-27 00:43:49 +0530
committerLauris BH <lauris@nix.lv>2018-12-26 21:13:49 +0200
commitba2c02b75de9c47379048576f1adead4edd0b2d6 (patch)
treedef70c301cbedfb1aefd7a3dc4d84c7017a40c12 /templates
parent4586ae390feb18d11f6995aca420fb12e0e591ba (diff)
downloadgitea-ba2c02b75de9c47379048576f1adead4edd0b2d6.tar.gz
gitea-ba2c02b75de9c47379048576f1adead4edd0b2d6.zip
Fix route in swagger (#5598)
Diffstat (limited to 'templates')
-rw-r--r--templates/swagger/v1_json.tmpl52
1 files changed, 26 insertions, 26 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 61ffbe13c6..ce5382152b 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -5411,32 +5411,6 @@
}
}
},
- "/user/{username}/orgs": {
- "get": {
- "produces": [
- "application/json"
- ],
- "tags": [
- "organization"
- ],
- "summary": "List a user's organizations",
- "operationId": "orgListUserOrgs",
- "parameters": [
- {
- "type": "string",
- "description": "username of user",
- "name": "username",
- "in": "path",
- "required": true
- }
- ],
- "responses": {
- "200": {
- "$ref": "#/responses/OrganizationList"
- }
- }
- }
- },
"/users/search": {
"get": {
"produces": [
@@ -5690,6 +5664,32 @@
}
}
},
+ "/users/{username}/orgs": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "organization"
+ ],
+ "summary": "List a user's organizations",
+ "operationId": "orgListUserOrgs",
+ "parameters": [
+ {
+ "type": "string",
+ "description": "username of user",
+ "name": "username",
+ "in": "path",
+ "required": true
+ }
+ ],
+ "responses": {
+ "200": {
+ "$ref": "#/responses/OrganizationList"
+ }
+ }
+ }
+ },
"/users/{username}/repos": {
"get": {
"produces": [