User
ID: Int
Email: String
Phone: String
FirstName: String
LastName: String
Password: Encrypted String
MonthlyIncome: Float
Created: Date
Category
ID: Int
Name: String
Amount: Float
Created: Date
SpendingType: String (ACTUAL or EXPECTED)
UserID: User.ID
Transaction
ID: Int
Name: String
Amount: Float
Created: Date
UserID: User.ID
CategoryID: Category.ID
{
"error": true,
"message": "Reason for error."
}{
"error": false,
"message": "Reason for success."
}Base URL: https://hoohacksproject.appspot.com
POST /api/login
Expected Data
{
"email": "useremail@swizard.tech",
"password": "plaintextpassword"
}Response
{
"error": false,
"created": "Sat, 28 Mar 2020 20:47:13 GMT",
"email": "useremail@swizard.tech",
"fname": "First",
"user_id": 1,
"lname": "Last",
"monthly_income": 10000.0,
"phone": "1234567890"
}POST /api/register
Expected Data
{
"fname": "First",
"lname": "Last",
"email": "user@swizard.tech",
"password": "mypassword",
"monthly_income": 10000.00,
"phone": "1234567890"
}Response
{
"error": false,
"message": "User successfully created"
}POST /api/
Expected Data
{
}Response
{
}