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

Method upstreamApis

plugins/core/upstream.go:10–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8)
9
10func (p *plugin) upstreamApis() []pm3.Api {
11 return []pm3.Api{
12 pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/service/upstream", []string{"context", "query:service"}, []string{"upstream"}, p.upstreamController.Get, access.SystemWorkspaceServiceViewAll, access.TeamServiceUpstreamView),
13 pm3.CreateApiWidthDoc(http.MethodPut, "/api/v1/service/upstream", []string{"context", "query:service", "body"}, []string{"upstream"}, p.upstreamController.Save, access.SystemWorkspaceServiceManagerAll, access.TeamServiceUpstreamManager),
14 }
15}

Callers 1

OnCompleteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected