Пример #1
0
 def post(self):
   r = json.loads(self.request.body)
   guest = model.UpdateGuest(r['id'], r['first'], r['last'])
   r = AsDict(guest)
   self.SendJson(r)
def update():
    r = json.loads(request.get_data())
    guest = model.UpdateGuest(r['id'], r['first'], r['last'])
    r = AsDict(guest)
    return json.dumps(r)