code: func CreateHandlers(rootPath string, provider Provider, summaryProvider SummaryProvider) *restful.WebService {
  	h := &handler{provider, summaryProvider}
  
  	ws := &restful.WebService{}
  	ws.Path(rootPath).
  		Produces(restful.MIME_JSON)
  
  	endpoints := []struct {
  		path    string
  		handler restful.RouteFunction
  	}{
  		{"", h.handleStats},
  		{"/summary", h.handleSummary},
  		{"/container", h.handleSystemContainer},
  		{"/{podName}/{containerName}", h.handlePodContainer},
  		{"/{namespace}/{podName}/{uid}/{containerName}", h.handlePodContainer},
  	}
  
  	for _, e := range endpoints {
  		for _, method := range []string{"GET", "POST"} {
  			ws.Route(ws.
  				Method(method).
  				Path(e.path).
  				To(e.handler))
  		}
  	}
  
  	return ws
  }
docs: // CreateHandlers creates the REST handlers for the stats.