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

Method Refuse

module/publish/iml.go:502–508  ·  view source on GitHub ↗
(ctx context.Context, serviceId string, id string, commits string)

Source from the content-addressed store, hash-verified

500}
501
502func (i *imlPublishModule) Refuse(ctx context.Context, serviceId string, id string, commits string) error {
503 _, err := i.serviceService.Check(ctx, serviceId, asServer)
504 if err != nil {
505 return err
506 }
507 return i.publishService.Refuse(ctx, serviceId, id, commits)
508}
509
510func (i *imlPublishModule) Accept(ctx context.Context, serviceId string, id string, commits string) error {
511 _, err := i.serviceService.Check(ctx, serviceId, asServer)

Callers

nothing calls this directly

Calls 2

CheckMethod · 0.65
RefuseMethod · 0.65

Tested by

no test coverage detected