mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-10 09:09:02 +00:00
Backport #24310 by @silverwind Continuation of https://github.com/go-gitea/gitea/pull/23995 Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: bilogic <946010+bilogic@users.noreply.github.com>
This commit is contained in:
parent
b1094ff28c
commit
ef3e3afc05
|
@ -145,7 +145,7 @@ func EditHook(ctx *context.APIContext) {
|
||||||
|
|
||||||
// DeleteHook delete a system hook
|
// DeleteHook delete a system hook
|
||||||
func DeleteHook(ctx *context.APIContext) {
|
func DeleteHook(ctx *context.APIContext) {
|
||||||
// swagger:operation DELETE /amdin/hooks/{id} admin adminDeleteHook
|
// swagger:operation DELETE /admin/hooks/{id} admin adminDeleteHook
|
||||||
// ---
|
// ---
|
||||||
// summary: Delete a hook
|
// summary: Delete a hook
|
||||||
// produces:
|
// produces:
|
||||||
|
|
|
@ -223,6 +223,31 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"delete": {
|
||||||
|
"produces": [
|
||||||
|
"application/json"
|
||||||
|
],
|
||||||
|
"tags": [
|
||||||
|
"admin"
|
||||||
|
],
|
||||||
|
"summary": "Delete a hook",
|
||||||
|
"operationId": "adminDeleteHook",
|
||||||
|
"parameters": [
|
||||||
|
{
|
||||||
|
"type": "integer",
|
||||||
|
"format": "int64",
|
||||||
|
"description": "id of the hook to delete",
|
||||||
|
"name": "id",
|
||||||
|
"in": "path",
|
||||||
|
"required": true
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"responses": {
|
||||||
|
"204": {
|
||||||
|
"$ref": "#/responses/empty"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"patch": {
|
"patch": {
|
||||||
"consumes": [
|
"consumes": [
|
||||||
"application/json"
|
"application/json"
|
||||||
|
@ -731,33 +756,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"/amdin/hooks/{id}": {
|
|
||||||
"delete": {
|
|
||||||
"produces": [
|
|
||||||
"application/json"
|
|
||||||
],
|
|
||||||
"tags": [
|
|
||||||
"admin"
|
|
||||||
],
|
|
||||||
"summary": "Delete a hook",
|
|
||||||
"operationId": "adminDeleteHook",
|
|
||||||
"parameters": [
|
|
||||||
{
|
|
||||||
"type": "integer",
|
|
||||||
"format": "int64",
|
|
||||||
"description": "id of the hook to delete",
|
|
||||||
"name": "id",
|
|
||||||
"in": "path",
|
|
||||||
"required": true
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"responses": {
|
|
||||||
"204": {
|
|
||||||
"$ref": "#/responses/empty"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"/markdown": {
|
"/markdown": {
|
||||||
"post": {
|
"post": {
|
||||||
"consumes": [
|
"consumes": [
|
||||||
|
|
Loading…
Reference in a new issue