MuebleriaIris API patterns: Flask + SQLAlchemy + PostgreSQL ERP backend. Trigger: When working in backend/ on routes, models, or database operations.
Use this skill when:
Flask + Flask-SQLAlchemy + PostgreSQL 15+
Flask-CORS | Python-dotenv | psycopg2-binary
# Success (201)
return jsonify({
"mensaje": "Producto creado exitosamente",
"producto": producto.to_dict()
}), 201
# Error (400)
return jsonify({"error": "Campo requerido"}), 400