示例#1
0
def add_client():
    nombre = request.get_json()["nombre"]
    email = request.get_json()["email"]
    telefono = request.get_json()["telefono"]
    Cliente.create(nombre=nombre, email=email, telefono=telefono)
    return jsonify(request.get_json())
示例#2
0
def create_cliente():
    clnt = Cliente.create(**request.get_json())
    return jsonify(clnt)