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

Method ListForService

service/api/iml.go:297–303  ·  view source on GitHub ↗
(ctx context.Context, serviceId string)

Source from the content-addressed store, hash-verified

295}
296
297func (i *imlAPIService) ListForService(ctx context.Context, serviceId string) ([]*API, error) {
298 list, err := i.listForService(ctx, serviceId, false)
299 if err != nil {
300 return nil, err
301 }
302 return utils.SliceToSlice(list, FromEntity), nil
303}
304func (i *imlAPIService) listForService(ctx context.Context, serviceId string, isDelete bool) ([]*api.API, error) {
305 return i.store.ListQuery(ctx, "service=? and is_delete=?", []interface{}{serviceId, isDelete}, "id")
306}

Callers

nothing calls this directly

Calls 1

listForServiceMethod · 0.95

Tested by

no test coverage detected