Skip to content

pratyush1712/find_my_party_backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Backend written in Flask for Find My Party. Team Submission for Cornell AppDev HackChallenge 2021.

Database model:

  • A relational many-to-many database.
  • There are two classes - Party and User - that are linked with an association table.

Deployed on (https://findmypartyhck1.herokuapp.com/api/)

Routes:

  • "/api/parties/" - Get all parties. (GET)
  • "/api/parties/host/" - Host a party. (POST)
  • "/api/party/int:party_id/" - Get a party by its ID. (GET)
  • "/api/users/" - Add a new user. (POST)
  • "/api/user/int:user_id" - Get user by ID. (GET)
  • "/api/party/int:party_id/attend/" - Attend a party by its ID. (POST)
  • "/api/party/int:party_id/attendees/" - Get all attendees of a party by its ID. (GET)
  • "/api/user/int:user_id/parties/" - Get all parties hosted by a user. (GET)
  • "/api/user/email/" - Get user by email, created because GoogleSignIn is used for auth. (GET)
  • "/api/user/delete/" - Delete user by email in request body. (DELETE)
  • "/api/party/int:party_id/delete/" - Delete party by party ID. (DELETE)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Python 99.8%
  • C 0.1%
  • PowerShell 0.1%
  • CSS 0.0%
  • JavaScript 0.0%
  • Shell 0.0%