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

Method Post

backend/helpers/pluginhelper/api/ds_scope_config_api_helper.go:72–80  ·  view source on GitHub ↗
(input *plugin.ApiResourceInput)

Source from the content-addressed store, hash-verified

70}
71
72func (connApi *DsScopeConfigApiHelper[C, S, SC]) Post(input *plugin.ApiResourceInput) (out *plugin.ApiResourceOutput, err errors.Error) {
73 // fix connectionId
74 connectionId, err := extractConnectionId(input)
75 if err != nil {
76 return nil, err
77 }
78 input.Body["connectionId"] = connectionId
79 return connApi.ModelApiHelper.Post(input)
80}
81
82func (connApi *DsScopeConfigApiHelper[C, S, SC]) Patch(input *plugin.ApiResourceInput) (out *plugin.ApiResourceOutput, err errors.Error) {
83 // fix connectionId

Callers

nothing calls this directly

Calls 2

extractConnectionIdFunction · 0.85
PostMethod · 0.65

Tested by

no test coverage detected