override POST method to PUT for RESTful API