Skeleton code for handling GET and PUT methods.