write Dashview api with the restful api
correct dashview