EmNebergall / Garbanzo

an application to compare beancount spending data to a budget plan
0 stars 0 forks source link

Flask Backend Implementation #4

Open EmNebergall opened 1 month ago

EmNebergall commented 1 month ago

/api/balances /api/transactions /api/monthly-summary /api/categories

EmNebergall commented 4 weeks ago

Key API Routes

@app.route('/api/transactions') def get_transactions(): start_date = request.args.get('start_date') end_date = request.args.get('end_date') category = request.args.get('category')

return filter_transactions(json_data, start_date, end_date, category)

@app.route('/api/monthly-summary') def get_monthly_summary(): return calculate_monthly_summary(json_data)