added rest API - but having problems with loading data