diff options
author | 6543 <6543@obermui.de> | 2020-04-21 15:48:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-21 14:48:53 +0100 |
commit | bb4261a5ed678235fadef279fe1ba1505993a406 (patch) | |
tree | e3134123a4ccd273ddf5cd93701fef6db21d593b /templates/swagger | |
parent | 33176e8d27eeb47c6d63fbd24bf11ac9e5c60acd (diff) | |
download | gitea-bb4261a5ed678235fadef279fe1ba1505993a406.tar.gz gitea-bb4261a5ed678235fadef279fe1ba1505993a406.zip |
Add issue subscription check to API (#10967)
close #10962
Adds `GET /api/v1/repos/{owner}/{repo}/issues/{index}/subscriptions/check`
-> return a `WachInfo`
Diffstat (limited to 'templates/swagger')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index 24a6330a06..3095e5c7f6 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -5217,6 +5217,53 @@ } } }, + "/repos/{owner}/{repo}/issues/{index}/subscriptions/check": { + "get": { + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "tags": [ + "issue" + ], + "summary": "Check if user is subscribed to an issue", + "operationId": "issueCheckSubscription", + "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", + "format": "int64", + "description": "index of the issue", + "name": "index", + "in": "path", + "required": true + } + ], + "responses": { + "200": { + "$ref": "#/responses/WatchInfo" + }, + "404": { + "$ref": "#/responses/notFound" + } + } + } + }, "/repos/{owner}/{repo}/issues/{index}/subscriptions/{user}": { "put": { "consumes": [ |