aboutsummaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorstevegt <stevegt@t7a.org>2018-05-31 22:51:49 -0700
committerLunny Xiao <xiaolunwen@gmail.com>2018-06-01 13:51:49 +0800
commit39f2aa7c12004d5536810e7178d2c5de806855de (patch)
treed4fac6f80bee2a475573ffbb5270e5effd839545 /public
parent7707ad7a0a6cda66036bd0eec2dead95d8664326 (diff)
downloadgitea-39f2aa7c12004d5536810e7178d2c5de806855de.tar.gz
gitea-39f2aa7c12004d5536810e7178d2c5de806855de.zip
add simple descriptions for file API responses (#4089)
* Partial fix for #4010 Swagger needs a description field in each swagger:operation response. Adding minimal text for now on the way to getting swagger validate to pass. Many standard swagger client libraries will not work with gitea until validate passes, so prioritizing that over better descriptions for now. Signed-off-by: Steve Traugott <stevegt@t7a.org>
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 3027564db5..6595d96f00 100644
--- a/public/swagger.v1.json
+++ b/public/swagger.v1.json
@@ -1028,7 +1028,9 @@
}
],
"responses": {
- "200": {}
+ "200": {
+ "description": "success"
+ }
}
}
},
@@ -1338,7 +1340,9 @@
}
],
"responses": {
- "200": {}
+ "200": {
+ "description": "success"
+ }
}
}
},
@@ -3261,7 +3265,9 @@
}
],
"responses": {
- "200": {}
+ "200": {
+ "description": "success"
+ }
}
}
},