MCPcopy
hub / github.com/cortexlabs/cortex / DescribeAPI

Function DescribeAPI

pkg/operator/endpoints/describe.go:26–36  ·  view source on GitHub ↗
(w http.ResponseWriter, r *http.Request)

Source from the content-addressed store, hash-verified

24)
25
26func DescribeAPI(w http.ResponseWriter, r *http.Request) {
27 apiName := mux.Vars(r)["apiName"]
28
29 response, err := resources.DescribeAPI(apiName)
30 if err != nil {
31 respondError(w, r, err)
32 return
33 }
34
35 respondJSON(w, r, response)
36}

Callers

nothing calls this directly

Calls 3

DescribeAPIFunction · 0.92
respondErrorFunction · 0.85
respondJSONFunction · 0.70

Tested by

no test coverage detected