(w http.ResponseWriter)
| 58 | } |
| 59 | |
| 60 | func addJSONContentTypeHeader(w http.ResponseWriter) { |
| 61 | w.Header().Add("Content-Type", "application/json") |
| 62 | } |
| 63 | |
| 64 | func removeResourceWrapper(s *schema.Schema, dataMap map[string]interface{}) map[string]interface{} { |
| 65 | if innerData, ok := dataMap[s.Singular]; ok { |