BBS API
- POST api/register
- POST api/login
- POST api/logout
- GET api/user -> indentify with token
- GET api/users
- PUT api/users/{id}
- DELETE api/users/{id}
- GET api/threads/{id}
- GET api/threads
- POST api/threads
- PATCH api/threads/{id}
- DELETE api/threads/{id}
- GET api/threads/{thread_id}/comments
- GET api/comments/{id}
- POST api/comments
- PATCH api/comments/{id}
- DELETE api/comments/{id}
id: int (primary key)name: varchar(255)email: varchar(255)password: varchar(255)created_at: timestampupdated_at: timestamp
id: int (primary key)user_id: int (foreign key to Users table)title: varchar(255)body: textcreated_at: timestampupdated_at: timestamp
id: int (primary key)user_id: int (foreign key to Users table)thread_id: int (foreign key to Threads table)body: textupvotes: intcreated_at: timestampupdated_at: timestamp