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

Method systemApis

plugins/core/system.go:9–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7)
8
9func (p *plugin) systemApis() []pm3.Api {
10 return []pm3.Api{
11 pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/system/_export", []string{"context"}, nil, p.exportConfigController.ExportAll),
12 pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/system/_import", []string{"context"}, nil, p.importConfigController.ImportAll),
13
14 pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/system/general", []string{"context"}, []string{"general"}, p.settingController.Get),
15 pm3.CreateApiWidthDoc(http.MethodPost, "/api/v1/system/general", []string{"context", "body"}, nil, p.settingController.Set),
16 }
17}
18
19func (p *plugin) systemApikeyApis() []pm3.Api {
20 return []pm3.Api{

Callers 1

OnCompleteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected