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

Struct API

mcp-server/openapi.go:20–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20type API struct {
21 Path string `json:"path"`
22 Method string `json:"method"`
23 ContentType string `json:"content_type"`
24 Summary string `json:"summary"`
25 Description string `json:"description"`
26 Params []*openapi3.Parameter `json:"params"`
27 Body map[string]interface{} `json:"body"`
28}
29
30func ConvertMCPFromOpenAPI3Data(data []byte) (*MCPInfo, error) {
31 spec, err := openapi3Loader.LoadFromData(data)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected