code: func (a *Api) Register(container *restful.Container) {
  	ws := new(restful.WebService)
  	ws.Path("/api/v1/metric-export").
  		Doc("Exports the latest point for all Heapster metrics").
  		Produces(restful.MIME_JSON)
  	ws.Route(ws.GET("").
  		To(a.exportMetrics).
  		Doc("export the latest data point for all metrics").
  		Operation("exportMetrics").
  		Writes([]*types.Timeseries{}))
  	container.Add(ws)
  	ws = new(restful.WebService)
  	ws.Path("/api/v1/metric-export-schema").
  		Doc("Schema for metrics exported by heapster").
  		Produces(restful.MIME_JSON)
  	ws.Route(ws.GET("").
  		To(a.exportMetricsSchema).
  		Doc("export the schema for all metrics").
  		Operation("exportmetricsSchema").
  		Writes(types.TimeseriesSchema{}))
  	container.Add(ws)
  
  	if a.metricSink != nil {
  		a.RegisterModel(container)
  	}
  
  	if a.historicalSource != nil {
  		a.RegisterHistorical(container)
  	}
  }
docs: // Register the mainApi on the specified endpoint.