Exemplo n.º 1
0
def get_user_types():
    try:
        return helpers.get_rows(TipoUsuario, tipo_usuario_schema)

    except Exception as e:
        return jsonify({"error": str(e)}), 500
Exemplo n.º 2
0
def get_clients():
    try:
        return helpers.get_rows(Cliente, cliente_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Exemplo n.º 3
0
def get_repairs():
    try:
        return helpers.get_rows(Reparacion, reparacion_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Exemplo n.º 4
0
def get_part_types():
    try:
        return helpers.get_rows(TipoParte, tipo_parte_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Exemplo n.º 5
0
def get_cities():
    try:
        return helpers.get_rows(City, city_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Exemplo n.º 6
0
def get_states():
    try:
        return helpers.get_rows(State, state_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Exemplo n.º 7
0
def get_messages():
    try:
        return helpers.get_rows(Message, message_schema)
    except Exception as e:
        return jsonify({'error': str(e)}), 500
Exemplo n.º 8
0
def get_vehicles():
    try:
        return helpers.get_rows(Vehiculo,vehiculo_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Exemplo n.º 9
0
def get_repair_details():
    try:
        return helpers.get_rows(ReparacionDetalle,reparacion_detalle_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Exemplo n.º 10
0
def get_warranties():
    try:
        return helpers.get_rows(Garantia, garantia_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Exemplo n.º 11
0
def get_employees():
    try:
        return helpers.get_rows(Empleado, empleado_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Exemplo n.º 12
0
def get_parts():
    try:
        return helpers.get_rows(Parte,parte_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500