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

Method ListForServices

service/api/iml.go:56–66  ·  view source on GitHub ↗
(ctx context.Context, serviceIds ...string)

Source from the content-addressed store, hash-verified

54}
55
56func (i *imlAPIService) ListForServices(ctx context.Context, serviceIds ...string) ([]*API, error) {
57 w := map[string]interface{}{}
58 if len(serviceIds) > 0 {
59 w["service"] = serviceIds
60 }
61 list, err := i.store.List(ctx, w)
62 if err != nil {
63 return nil, err
64 }
65 return utils.SliceToSlice(list, FromEntity), nil
66}
67
68func (i *imlAPIService) ListInfoForServices(ctx context.Context, serviceIds ...string) ([]*Info, error) {
69 w := map[string]interface{}{}

Callers

nothing calls this directly

Calls 1

ListMethod · 0.65

Tested by

no test coverage detected