MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / genOpenAPI3Template

Function genOpenAPI3Template

module/ai-api/schema.go:8–20  ·  view source on GitHub ↗
(title string, description string)

Source from the content-addressed store, hash-verified

6)
7
8func genOpenAPI3Template(title string, description string) *openapi3.T {
9 result := new(openapi3.T)
10 result.OpenAPI = "3.0.1"
11 result.Info = &openapi3.Info{
12 Title: title,
13 Description: description,
14 Version: "beta",
15 }
16
17 result.Components = components
18 result.Paths = new(openapi3.Paths)
19 return result
20}
21
22func genOperation(summary string, description string, variables []*ai_api_dto.AiPromptVariable) *openapi3.Operation {
23 operation := openapi3.NewOperation()

Callers 2

TestSchemaBuildFunction · 0.85
getAPIDocMethod · 0.85

Calls

no outgoing calls

Tested by 1

TestSchemaBuildFunction · 0.68