Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 722 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 722 Bytes

truitter-back

API

  • POST /users/signup => Create user (Dto => email, password, firstName, lastName)
  • POST /users/login => Log user (Dto => email, password)
  • GET /users/:id => return all truittes of an user
  • GET /quotes => return all truittes of the people I follow
  • POST /quotes => create a truitte (Dto => text)
  • PUT /quotes/:id => edit a truitte (Dto => text)
  • DELETE /quotes/:id => delete a truitte
  • POST /subscriptions/:id => follow an account
  • DELETE /subscriptions/:id => unfollow an account

TABLES

User => ID, firstName, lastName, darkMode

Quote => ID, text, #userID, createdDate, modifiedDate

Subscription => ID, #followerID, #followedID