changed the angular service to match the expected format of the api