Make calls to api work with the restful changes