Test of json returns
Added API endpoints