POST and PUT working