Rest API Updates

Couple of updates and fixes to REST API