()
| 168 | } |
| 169 | |
| 170 | func (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 | |
| 202 | func (p QDev) Close(taskCtx plugin.TaskContext) errors.Error { |
| 203 | data, ok := taskCtx.GetData().(*tasks.QDevTaskData) |
no outgoing calls