MCPcopy Index your code
hub / github.com/apache/devlake / DeleteConnection

Function DeleteConnection

backend/plugins/webhook/api/connection.go:127–130  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

125// @Failure 500 {string} errcode.Error "Internal Error"
126// @Router /plugins/webhook/connections/{connectionId} [DELETE]
127func 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

Callers

nothing calls this directly

Calls 1

deleteConnectionFunction · 0.85

Tested by

no test coverage detected