Added rest resources to receive data for graphs