general view for dealing with our rest api calls