def put(self): """PUT method to udpate the status of the call, in this case is stop the call and actualize the end time and the duration""" token_call = self.get_argument("token_call") call_stop = Call() returned_call = call_stop.get(token=token_call) if returned_call['duration'] is None: call_stop.update(token_call) self.set_status(200) self.set_header("Location",DOMAIN_REST+"/call?token_call="+token_call) self.write("")