REST API SAVEMONEY
Introduction
This API provides endpoints to manage users, expenses, and incomes for the SaveMoney application. Using Firebase, Firestore, and Nodejs Express.
Demo : https://savemoney-api-rdiyde43ea-uc.a.run.app/
User Endpoints
Register
Login
Logout
- Endpoint:
/auth/logout
- Method:
GET
- Description: Logout the authenticated user.
Get All User Information
- Endpoint:
/api/users
- Method:
GET
- Description: Retrieve information for all users. (Authentication required)
Get User
- Endpoint:
/api/users/me
- Method:
GET
- Description: Retrieve information for the authenticated user. (Authentication required)
Update User
Delete User
- Endpoint:
/api/users/me
- Method:
DELETE
- Description: Delete the authenticated user. (Authentication required)
Expense Endpoints
Add Expense
Get All Expenses
- Endpoint:
/api/users/expense
- Method:
GET
- Description: Retrieve all expenses for the authenticated user. (Authentication required)
Get Expense By ID
- Endpoint:
/api/users/expense/:id
- Method:
GET
- Description: Retrieve a specific expense by ID for the authenticated user. (Authentication required)
Update Expense By ID
Delete Expense By ID
- Endpoint:
/api/users/expense/:id
- Method:
DELETE
- Description: Delete a specific expense by ID for the authenticated user. (Authentication required)
Income Endpoints
Add Income
Get All Incomes
- Endpoint:
/api/users/incomes
- Method:
GET
- Description: Retrieve all incomes for the authenticated user. (Authentication required)
Get Income By ID
- Endpoint:
/api/users/incomes/:id
- Method:
GET
- Description: Retrieve a specific income by ID for the authenticated user. (Authentication required)
Update Income By ID
Delete Income By ID
- Endpoint:
/api/users/incomes/:id
- Method:
DELETE
- Description: Delete a specific income by ID for the authenticated user. (Authentication required)