Refactored api calls to support more HTTP request methods