MCPcopy Create free account
hub / github.com/apache/devlake / ListConnections

Function ListConnections

backend/plugins/feishu/api/connection.go:171–181  ·  view source on GitHub ↗

@Summary get all feishu connections @Description Get all feishu connections @Tags plugins/feishu @Success 200 {object} models.FeishuConnection @Failure 400 {string} errcode.Error "Bad Request" @Failure 500 {string} errcode.Error "Internal Error" @Router /plugins/feishu/connections [GET]

(_ *plugin.ApiResourceInput)

Source from the content-addressed store, hash-verified

169// @Failure 500 {string} errcode.Error "Internal Error"
170// @Router /plugins/feishu/connections [GET]
171func ListConnections(_ *plugin.ApiResourceInput) (*plugin.ApiResourceOutput, errors.Error) {
172 var connections []models.FeishuConnection
173 err := connectionHelper.List(&connections)
174 if err != nil {
175 return nil, err
176 }
177 for idx, c := range connections {
178 connections[idx] = c.Sanitize()
179 }
180 return &plugin.ApiResourceOutput{Body: connections}, nil
181}
182
183// @Summary get feishu connection detail
184// @Description Get feishu connection detail

Callers

nothing calls this directly

Calls 2

ListMethod · 0.45
SanitizeMethod · 0.45

Tested by

no test coverage detected