(w http.ResponseWriter, r *http.Request)
| 46 | } |
| 47 | |
| 48 | func GetAPIByID(w http.ResponseWriter, r *http.Request) { |
| 49 | apiName := mux.Vars(r)["apiName"] |
| 50 | apiID := mux.Vars(r)["apiID"] |
| 51 | |
| 52 | response, err := resources.GetAPIByID(apiName, apiID) |
| 53 | if err != nil { |
| 54 | respondError(w, r, err) |
| 55 | return |
| 56 | } |
| 57 | |
| 58 | respondJSON(w, r, response) |
| 59 | } |
nothing calls this directly
no test coverage detected