GET and PUT methods working