Esempio 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
Esempio n. 2
0
def get_clients():
    try:
        return helpers.get_rows(Cliente, cliente_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Esempio n. 3
0
def get_repairs():
    try:
        return helpers.get_rows(Reparacion, reparacion_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Esempio 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
Esempio n. 5
0
def get_cities():
    try:
        return helpers.get_rows(City, city_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Esempio n. 6
0
def get_states():
    try:
        return helpers.get_rows(State, state_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Esempio n. 7
0
def get_messages():
    try:
        return helpers.get_rows(Message, message_schema)
    except Exception as e:
        return jsonify({'error': str(e)}), 500
Esempio n. 8
0
def get_vehicles():
    try:
        return helpers.get_rows(Vehiculo,vehiculo_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Esempio 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
Esempio n. 10
0
def get_warranties():
    try:
        return helpers.get_rows(Garantia, garantia_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Esempio n. 11
0
def get_employees():
    try:
        return helpers.get_rows(Empleado, empleado_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500
Esempio n. 12
0
def get_parts():
    try:
        return helpers.get_rows(Parte,parte_schema)
    except Exception as e:
        return jsonify({"error": str(e)}), 500