DeleteConnection @Summary delete a webhook connection @Description Delete a webhook connection @Tags plugins/webhook @Success 200 {object} models.WebhookConnection @Failure 400 {string} errcode.Error "Bad Request" @Failure 409 {object} services.BlueprintProjectPairs "References exist to this conn
(input *plugin.ApiResourceInput)
| 125 | // @Failure 500 {string} errcode.Error "Internal Error" |
| 126 | // @Router /plugins/webhook/connections/{connectionId} [DELETE] |
| 127 | func DeleteConnection(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) { |
| 128 | connectionId, e := strconv.ParseUint(input.Params["connectionId"], 10, 64) |
| 129 | return deleteConnection(e, connectionId) |
| 130 | } |
| 131 | |
| 132 | // DeleteConnectionByName |
| 133 | // @Summary delete a webhook connection by name |
nothing calls this directly
no test coverage detected