Add default object parameter to get and post methods