diff options
author | techknowlogick <techknowlogick@users.noreply.github.com> | 2018-07-06 21:54:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-06 21:54:30 -0400 |
commit | ab55ca7ebd7d30dad894c35e6facd0b1822fb899 (patch) | |
tree | 979f05088d7d0362cb7c95f097ff3931b3dc2e91 /public/swagger.v1.json | |
parent | 1675fc4301d4bff339a0831348fca76a9e394999 (diff) | |
download | gitea-ab55ca7ebd7d30dad894c35e6facd0b1822fb899.tar.gz gitea-ab55ca7ebd7d30dad894c35e6facd0b1822fb899.zip |
Add ability to delete a token (#4235)
Fix #4234
Diffstat (limited to 'public/swagger.v1.json')
-rw-r--r-- | public/swagger.v1.json | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/public/swagger.v1.json b/public/swagger.v1.json index 9fd790281a..c2efd66da0 100644 --- a/public/swagger.v1.json +++ b/public/swagger.v1.json @@ -5441,6 +5441,39 @@ } } }, + "/users/{username}/tokens/{token}": { + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "user" + ], + "summary": "delete an access token", + "operationId": "userDeleteAccessToken", + "parameters": [ + { + "type": "string", + "description": "username of user", + "name": "username", + "in": "path", + "required": true + }, + { + "type": "integer", + "description": "token to be deleted", + "name": "token", + "in": "path", + "required": true + } + ], + "responses": { + "204": { + "$ref": "#/responses/empty" + } + } + } + }, "/version": { "get": { "produces": [ @@ -7479,6 +7512,10 @@ "AccessToken": { "description": "AccessToken represents a API access token.", "headers": { + "id": { + "type": "integer", + "format": "int64" + }, "name": { "type": "string" }, |