Skip to content

ecjuncal/hoohacks-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HooHacks Project Backend API

Database Models

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


Default Error/Success Responses

{
    "error": true,
    "message": "Reason for error."
}
{
    "error": false,
    "message": "Reason for success."
}

API Endpoints

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

{

}

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages