added all currently implemented api methods to api.js