Finished the interface definitions for all the api calls.