(w http.ResponseWriter, r *http.Request)
| 34 | } |
| 35 | |
| 36 | func GetAPI(w http.ResponseWriter, r *http.Request) { |
| 37 | apiName := mux.Vars(r)["apiName"] |
| 38 | |
| 39 | response, err := resources.GetAPI(apiName) |
| 40 | if err != nil { |
| 41 | respondError(w, r, err) |
| 42 | return |
| 43 | } |
| 44 | |
| 45 | respondJSON(w, r, response) |
| 46 | } |
| 47 | |
| 48 | func GetAPIByID(w http.ResponseWriter, r *http.Request) { |
| 49 | apiName := mux.Vars(r)["apiName"] |
nothing calls this directly
no test coverage detected