def new_application(): pjson = json.loads(request.data) app = Application(pjson.get('name')) app.save() return jsonify({'result': "Ok"})