{ "info": { "_postman_id": "smart-budget-recommendation-api", "name": "Smart Budget Recommendation API", "description": "API collection for Smart Budget Recommendation service deployed on Hugging Face", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" }, "item": [ { "name": "Health Check", "request": { "method": "GET", "header": [], "url": { "raw": "https://logicgoinfotechspaces-smart-budget-recommendation.hf.space/health", "protocol": "https", "host": [ "logicgoinfotechspaces-smart-budget-recommendation", "hf", "space" ], "path": [ "health" ] }, "description": "Check if the API and database are running" } }, { "name": "Root Endpoint", "request": { "method": "GET", "header": [], "url": { "raw": "https://logicgoinfotechspaces-smart-budget-recommendation.hf.space/", "protocol": "https", "host": [ "logicgoinfotechspaces-smart-budget-recommendation", "hf", "space" ], "path": [ "" ] } } }, { "name": "Create Expense", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"user_id\": \"68a834c3f4694b11efedacd2\",\n \"amount\": 3800,\n \"category\": \"Groceries\",\n \"description\": \"Monthly groceries\",\n \"date\": \"2025-01-15T00:00:00\",\n \"type\": \"expense\"\n}" }, "url": { "raw": "https://logicgoinfotechspaces-smart-budget-recommendation.hf.space/expenses", "protocol": "https", "host": [ "logicgoinfotechspaces-smart-budget-recommendation", "hf", "space" ], "path": [ "expenses" ] }, "description": "Create a new expense record" } }, { "name": "Get Expenses", "request": { "method": "GET", "header": [], "url": { "raw": "https://logicgoinfotechspaces-smart-budget-recommendation.hf.space/expenses?user_id=68a834c3f4694b11efedacd2&limit=20", "protocol": "https", "host": [ "logicgoinfotechspaces-smart-budget-recommendation", "hf", "space" ], "path": [ "expenses" ], "query": [ { "key": "user_id", "value": "68a834c3f4694b11efedacd2", "description": "User identifier" }, { "key": "limit", "value": "20", "description": "Maximum number of expenses to return" } ] }, "description": "Get expenses for a specific user" } }, { "name": "Create Budget", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"user_id\": \"68a834c3f4694b11efedacd2\",\n \"category\": \"Groceries\",\n \"amount\": 4000,\n \"period\": \"monthly\",\n \"start_date\": \"2025-02-01T00:00:00\",\n \"end_date\": \"2025-02-29T00:00:00\"\n}" }, "url": { "raw": "https://logicgoinfotechspaces-smart-budget-recommendation.hf.space/budgets", "protocol": "https", "host": [ "logicgoinfotechspaces-smart-budget-recommendation", "hf", "space" ], "path": [ "budgets" ] }, "description": "Create a new budget" } }, { "name": "Get Budgets", "request": { "method": "GET", "header": [], "url": { "raw": "https://logicgoinfotechspaces-smart-budget-recommendation.hf.space/budgets?user_id=68a834c3f4694b11efedacd2", "protocol": "https", "host": [ "logicgoinfotechspaces-smart-budget-recommendation", "hf", "space" ], "path": [ "budgets" ], "query": [ { "key": "user_id", "value": "68a834c3f4694b11efedacd2" } ] }, "description": "Get budgets for a specific user" } }, { "name": "Get Smart Budget Recommendations", "request": { "method": "GET", "header": [], "url": { "raw": "https://logicgoinfotechspaces-smart-budget-recommendation.hf.space/recommendations/68a834c3f4694b11efedacd2?month=2&year=2025", "protocol": "https", "host": [ "logicgoinfotechspaces-smart-budget-recommendation", "hf", "space" ], "path": [ "recommendations", "68a834c3f4694b11efedacd2" ], "query": [ { "key": "month", "value": "2", "description": "Target month (1-12), optional - defaults to next month" }, { "key": "year", "value": "2025", "description": "Target year, optional - defaults to next year" } ] }, "description": "Get smart budget recommendations based on past spending behavior. Requires at least 2-3 months of expense data." } }, { "name": "Get Category Expenses", "request": { "method": "GET", "header": [], "url": { "raw": "https://logicgoinfotechspaces-smart-budget-recommendation.hf.space/category-expenses/68a834c3f4694b11efedacd2?months=3", "protocol": "https", "host": [ "logicgoinfotechspaces-smart-budget-recommendation", "hf", "space" ], "path": [ "category-expenses", "68a834c3f4694b11efedacd2" ], "query": [ { "key": "months", "value": "3", "description": "Number of months to analyze (default: 3)" } ] }, "description": "Get average expenses by category for the past N months" } }, { "name": "Sample Expenses - Create Multiple", "item": [ { "name": "Groceries - Month 1 (Sept 2024)", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"user_id\": \"68a834c3f4694b11efedacd2\",\n \"amount\": 3500,\n \"category\": \"Groceries\",\n \"description\": \"Monthly groceries - September 2024\",\n \"date\": \"2024-09-15T00:00:00\",\n \"type\": \"expense\"\n}" }, "url": { "raw": "https://logicgoinfotechspaces-smart-budget-recommendation.hf.space/expenses", "protocol": "https", "host": [ "logicgoinfotechspaces-smart-budget-recommendation", "hf", "space" ], "path": [ "expenses" ] } } }, { "name": "Groceries - Month 2 (Oct 2024)", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"user_id\": \"68a834c3f4694b11efedacd2\",\n \"amount\": 3800,\n \"category\": \"Groceries\",\n \"description\": \"Monthly groceries - October 2024\",\n \"date\": \"2024-10-15T00:00:00\",\n \"type\": \"expense\"\n}" }, "url": { "raw": "https://logicgoinfotechspaces-smart-budget-recommendation.hf.space/expenses", "protocol": "https", "host": [ "logicgoinfotechspaces-smart-budget-recommendation", "hf", "space" ], "path": [ "expenses" ] } } }, { "name": "Groceries - Month 3 (Nov 2024)", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"user_id\": \"68a834c3f4694b11efedacd2\",\n \"amount\": 4000,\n \"category\": \"Groceries\",\n \"description\": \"Monthly groceries - November 2024\",\n \"date\": \"2024-11-15T00:00:00\",\n \"type\": \"expense\"\n}" }, "url": { "raw": "https://logicgoinfotechspaces-smart-budget-recommendation.hf.space/expenses", "protocol": "https", "host": [ "logicgoinfotechspaces-smart-budget-recommendation", "hf", "space" ], "path": [ "expenses" ] } } }, { "name": "Transport - Month 1 (Sept 2024)", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"user_id\": \"68a834c3f4694b11efedacd2\",\n \"amount\": 2000,\n \"category\": \"Transport\",\n \"description\": \"Monthly transport - September 2024\",\n \"date\": \"2024-09-20T00:00:00\",\n \"type\": \"expense\"\n}" }, "url": { "raw": "https://logicgoinfotechspaces-smart-budget-recommendation.hf.space/expenses", "protocol": "https", "host": [ "logicgoinfotechspaces-smart-budget-recommendation", "hf", "space" ], "path": [ "expenses" ] } } }, { "name": "Transport - Month 2 (Oct 2024)", "request": { "method": "POST", "header": [ { "key": "Content-Type", "value": "application/json" } ], "body": { "mode": "raw", "raw": "{\n \"user_id\": \"68a834c3f4694b11efedacd2\",\n \"amount\": 2200,\n \"category\": \"Transport\",\n \"description\": \"Monthly transport - October 2024\",\n \"date\": \"2024-10-20T00:00:00\",\n \"type\": \"expense\"\n}" }, "url": { "raw": "https://logicgoinfotechspaces-smart-budget-recommendation.hf.space/expenses", "protocol": "https", "host": [ "logicgoinfotechspaces-smart-budget-recommendation", "hf", "space" ], "path": [ "expenses" ] } } } ] } ], "variable": [ { "key": "base_url", "value": "https://logicgoinfotechspaces-smart-budget-recommendation.hf.space", "type": "string" }, { "key": "user_id", "value": "68a834c3f4694b11efedacd2", "type": "string" } ] }