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

Method MyAPIKeysByService

controller/system-apikey/iml.go:15–23  ·  view source on GitHub ↗
(ctx *gin.Context, serviceId string, appId string)

Source from the content-addressed store, hash-verified

13}
14
15func (i *imlAPIKeyController) MyAPIKeysByService(ctx *gin.Context, serviceId string, appId string) ([]*system_apikey_dto.AuthorizationItem, error) {
16 if serviceId != "" {
17 return i.apikeyModule.MyAPIKeysByService(ctx, serviceId)
18 }
19 if appId != "" {
20 return i.apikeyModule.MyAPIKeysByApp(ctx, appId)
21 }
22 return nil, nil
23}
24
25func (i *imlAPIKeyController) MyAPIKeys(ctx *gin.Context) ([]*system_apikey_dto.SimpleItem, error) {
26 return i.apikeyModule.MyAPIKeys(ctx)

Callers

nothing calls this directly

Calls 2

MyAPIKeysByServiceMethod · 0.65
MyAPIKeysByAppMethod · 0.65

Tested by

no test coverage detected