MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / Delete

Method Delete

controller/ai-api/iml.go:161–170  ·  view source on GitHub ↗
(ctx *gin.Context, serviceId string, apiId string)

Source from the content-addressed store, hash-verified

159}
160
161func (i *imlAPIController) Delete(ctx *gin.Context, serviceId string, apiId string) error {
162 return i.transaction.Transaction(ctx, func(txCtx context.Context) error {
163 err := i.routerModule.Delete(ctx, serviceId, apiId)
164 if err != nil {
165 return err
166 }
167 return i.module.Delete(ctx, serviceId, apiId)
168 })
169
170}
171
172func (i *imlAPIController) List(ctx *gin.Context, keyword string, serviceId string) ([]*ai_api_dto.APIItem, error) {
173 return i.module.List(ctx, keyword, serviceId)

Callers

nothing calls this directly

Calls 1

DeleteMethod · 0.65

Tested by

no test coverage detected