Rest API now working