AngularJS service for communicating with endpoints described by swagger.