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

Function GetConnection

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

GetConnection @Summary get webhook connection detail @Description Get webhook connection detail @Tags plugins/webhook @Success 200 {object} WebhookConnectionResponse @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internal Error" @Router /plugins/webhook/con

(input *plugin.ApiResourceInput)

Source from the content-addressed store, hash-verified

225// @Failure 500 {string} errcode.Error "Internal Error"
226// @Router /plugins/webhook/connections/{connectionId} [GET]
227func GetConnection(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
228 connection := &models.WebhookConnection{}
229 err := connectionHelper.First(connection, input.Params)
230 return getConnection(err, connection)
231}
232
233// GetConnectionByName
234// @Summary get webhook connection detail by name

Callers

nothing calls this directly

Calls 2

getConnectionFunction · 0.85
FirstMethod · 0.65

Tested by

no test coverage detected