summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorJonas Östanbäck <cez81@users.noreply.github.com>2017-05-19 02:20:06 +0200
committerLunny Xiao <xiaolunwen@gmail.com>2017-05-19 08:20:06 +0800
commit0161e46b5a1a60b9e5a20438c5b67ca84dce5861 (patch)
treee3b4aef40800782896904f66ecbbe765c6afa827 /public
parentfd6034aaf23af1ce03bcba0babcbe7675ce093ee (diff)
downloadgitea-0161e46b5a1a60b9e5a20438c5b67ca84dce5861.tar.gz
gitea-0161e46b5a1a60b9e5a20438c5b67ca84dce5861.zip
Add swagger comment for MirrorSync (#1747)
* Add swagger comment for MirrorSync * Generate swagger.v1.json
Diffstat (limited to 'public')
-rw-r--r--public/swagger.v1.json16
1 files changed, 16 insertions, 0 deletions
diff --git a/public/swagger.v1.json b/public/swagger.v1.json
index 264ae52be6..dd91a6fdc1 100644
--- a/public/swagger.v1.json
+++ b/public/swagger.v1.json
@@ -228,6 +228,22 @@
}
}
},
+ "/repos/{username}/{reponame}/mirror-sync": {
+ "post": {
+ "produces": [
+ "application/json"
+ ],
+ "operationId": "repoMirrorSync",
+ "responses": {
+ "200": {
+ "$ref": "#/responses/empty"
+ },
+ "403": {
+ "$ref": "#/responses/forbidden"
+ }
+ }
+ }
+ },
"/repos/{username}/{reponame}/subscription": {
"get": {
"operationId": "userCurrentCheckSubscription",