Modifications
Getting started
Dockerfile
The Dockerfile which is used to build our Pocketbase instance can be found under BudgetBuddyDE/services/pocketbase/Dockerfile
.
Jobs
Job | Description | Execute at |
---|---|---|
process-recurring-payments | Details can be found in the features section | 30 1 * * * |
delete-marked-users | Retrieves all users who have been marked as “to be deleted” and are to be deleted today. | 30 1 * * * |
Endpoints
GET /transactions/stats
The endpoint provides an overview of a user's recorded transactions for a specific date range. The overview contains information about the user's income, expenditure and account balance.
Request
Authentication
Access is restricted to authenticated users. The middleware requires authentication as an
administrator or an authorized user from the users
table.
Params
Prop | Type | Default |
---|---|---|
startDate | Date | - |
endDate | Date | - |
Response
Prop | Type | Default |
---|---|---|
startDate | Date | - |
endDate | Date | - |
balance | {current: number, estimated: number} | - |
income | {received: number, upcoming: number} | - |
expenses | {received: number, upcoming: number} | - |
/transactions/budget
This endpoint provides an overview of a user's expenses, income, and available budget for a specified period.
Request
Authentication
Access is restricted to authenticated users. The middleware requires authentication as an
administrator or an authorized user from the users
table.
Params
Prop | Type | Default |
---|---|---|
startDate | Date | - |
endDate | Date | - |
Response
Prop | Type | Default |
---|---|---|
startDate | Date | - |
endDate | Date | - |
expenses | number | - |
upcomingExpenses | number | - |
freeAmount | number | - |
/categories/stats
This endpoint provides an overview of the income and expenses of a user's recorded transactions grouped by category for a specific time period.
Request
Authentication
Access is restricted to authenticated users. The middleware requires authentication as an
administrator or an authorized user from the users
table.
Params
Prop | Type | Default |
---|---|---|
startDate | Date | - |
endDate | Date | - |
Response
Prop | Type | Default |
---|---|---|
startDate | Date | - |
endDate | Date | - |
categories | Array<{balance: number, category: {id: string, name: string}, expenses: number, income: number}> | - |