Updated to support GET method besides the put method for times when it's hard to do a PUT