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())
def create_cliente(): clnt = Cliente.create(**request.get_json()) return jsonify(clnt)