summaryrefslogtreecommitdiffstats
path: root/public/swagger.v1.json
diff options
context:
space:
mode:
authorEthan Koenig <ethantkoenig@gmail.com>2018-04-28 23:21:33 -0700
committerLunny Xiao <xiaolunwen@gmail.com>2018-04-29 14:21:33 +0800
commit7ea4bfc56172faf588142ee5637f35c0344f7534 (patch)
treef4d47e2d4209b90d340dead5e3abb7b4a02cb475 /public/swagger.v1.json
parent5a62eb30df3a04e76e465824f525b4ffd920b562 (diff)
downloadgitea-7ea4bfc56172faf588142ee5637f35c0344f7534.tar.gz
gitea-7ea4bfc56172faf588142ee5637f35c0344f7534.zip
API endpoint for testing webhook (#3550)
* API endpoint for testing webhook * Empty commit to rerun CI
Diffstat (limited to 'public/swagger.v1.json')
-rw-r--r--public/swagger.v1.json40
1 files changed, 40 insertions, 0 deletions
diff --git a/public/swagger.v1.json b/public/swagger.v1.json
index dec618988b..86bf20a9a8 100644
--- a/public/swagger.v1.json
+++ b/public/swagger.v1.json
@@ -1565,6 +1565,46 @@
}
}
},
+ "/repos/{owner}/{repo}/hooks/{id}/tests": {
+ "post": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "repository"
+ ],
+ "summary": "Test a push webhook",
+ "operationId": "repoTestHook",
+ "parameters": [
+ {
+ "type": "string",
+ "description": "owner of the repo",
+ "name": "owner",
+ "in": "path",
+ "required": true
+ },
+ {
+ "type": "string",
+ "description": "name of the repo",
+ "name": "repo",
+ "in": "path",
+ "required": true
+ },
+ {
+ "type": "integer",
+ "description": "id of the hook to test",
+ "name": "id",
+ "in": "path",
+ "required": true
+ }
+ ],
+ "responses": {
+ "204": {
+ "$ref": "#/responses/empty"
+ }
+ }
+ }
+ },
"/repos/{owner}/{repo}/issue/{index}/comments": {
"get": {
"produces": [