MCPcopy Create free account
hub / github.com/APIParkLab/APIPark / Delete

Method Delete

controller/dynamic-module/iml.go:66–76  ·  view source on GitHub ↗
(ctx *gin.Context, module string, idStr string)

Source from the content-addressed store, hash-verified

64}
65
66func (i *imlDynamicModuleController) Delete(ctx *gin.Context, module string, idStr string) error {
67 ids := make([]string, 0)
68 err := json.Unmarshal([]byte(idStr), &ids)
69 if err != nil {
70 return err
71 }
72 if len(ids) == 0 {
73 return nil
74 }
75 return i.module.Delete(ctx, module, ids)
76}
77
78func (i *imlDynamicModuleController) Get(ctx *gin.Context, module string, id string) (*dynamic_module_dto.DynamicModule, error) {
79 return i.module.Get(ctx, module, id)

Callers

nothing calls this directly

Calls 1

DeleteMethod · 0.65

Tested by

no test coverage detected