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

Method ApiResources

backend/plugins/q_dev/impl/impl.go:170–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168}
169
170func (p QDev) ApiResources() map[string]map[string]plugin.ApiResourceHandler {
171 return map[string]map[string]plugin.ApiResourceHandler{
172 "test": {
173 "POST": api.TestConnection,
174 },
175 "connections": {
176 "POST": api.PostConnections,
177 "GET": api.ListConnections,
178 },
179 "connections/:connectionId": {
180 "PATCH": api.PatchConnection,
181 "DELETE": api.DeleteConnection,
182 "GET": api.GetConnection,
183 },
184 "connections/:connectionId/test": {
185 "POST": api.TestExistingConnection,
186 },
187 "connections/:connectionId/scopes": {
188 "GET": api.GetScopeList,
189 "PUT": api.PutScopes,
190 },
191 "connections/:connectionId/scopes/:scopeId": {
192 "GET": api.GetScope,
193 "PATCH": api.PatchScope,
194 "DELETE": api.DeleteScope,
195 },
196 "connections/:connectionId/scopes/:scopeId/latest-sync-state": {
197 "GET": api.GetScopeLatestSyncState,
198 },
199 }
200}
201
202func (p QDev) Close(taskCtx plugin.TaskContext) errors.Error {
203 data, ok := taskCtx.GetData().(*tasks.QDevTaskData)

Callers 1

Calls

no outgoing calls

Tested by 1