[Restfull] implement restfull api to access stat and chart data