diff options
author | Shashvat Kedia <sk261@snu.edu.in> | 2018-12-27 21:06:58 +0530 |
---|---|---|
committer | Jonas Franz <info@jonasfranz.software> | 2018-12-27 16:36:58 +0100 |
commit | 6e20b504b1d5f63b1835f2826d6cbaf2064f479d (patch) | |
tree | 789a1a010033a50e86695dd55a3e3931d0b9a98d /templates/swagger | |
parent | 21357a4ae04068a7ebe5ee5bc800ef36e11fd614 (diff) | |
download | gitea-6e20b504b1d5f63b1835f2826d6cbaf2064f479d.tar.gz gitea-6e20b504b1d5f63b1835f2826d6cbaf2064f479d.zip |
Delete organization endpoint added (#5601)
* Delete organization endpoint added
* Parameters added in comment
* Typo fix
* Newline character removed
Diffstat (limited to 'templates/swagger')
-rw-r--r-- | templates/swagger/v1_json.tmpl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl index ce5382152b..b96a20109c 100644 --- a/templates/swagger/v1_json.tmpl +++ b/templates/swagger/v1_json.tmpl @@ -467,6 +467,30 @@ } } }, + "delete": { + "produces": [ + "application/json" + ], + "tags": [ + "organization" + ], + "summary": "Delete an organization", + "operationId": "orgDelete", + "parameters": [ + { + "type": "string", + "description": "organization that is to be deleted", + "name": "org", + "in": "path", + "required": true + } + ], + "responses": { + "204": { + "$ref": "#/responses/empty" + } + } + }, "patch": { "consumes": [ "application/json" |