def PUT(self, _id): data = json.request() db.todos.save(data, safe=True, multi=False) return web.no_content()
def POST(self): data = json.request() db.todos.save(data, safe=True) raise json.response(web.created, data=data)