User and energy rest api added