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

Function GetConnection

backend/plugins/gitee/api/connection.go:207–211  ·  view source on GitHub ↗

@Summary get gitee connection detail @Description Get gitee connection detail @Tags plugins/gitee @Success 200 {object} models.GiteeConnection @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internal Error" @Router /plugins/gitee/connections/{connectionId} [

(input *plugin.ApiResourceInput)

Source from the content-addressed store, hash-verified

205// @Failure 500 {string} errcode.Error "Internal Error"
206// @Router /plugins/gitee/connections/{connectionId} [GET]
207func GetConnection(input *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
208 connection := &models.GiteeConnection{}
209 err := connectionHelper.First(connection, input.Params)
210 return &plugin.ApiResourceOutput{Body: connection.Sanitize()}, err
211}

Callers

nothing calls this directly

Calls 2

SanitizeMethod · 0.95
FirstMethod · 0.65

Tested by

no test coverage detected