- Subreaddit CR UD
- Post CR UD
- Comments on Posts
- Upvote / Downvote -> Karma
- Following subreaddits
- Nested Comments
- Comment Karma
- Subreaddit moderators
- Saved Posts
- Users
Home: https://wireframe.cc/KOzRBB
Create a Post(text): https://wireframe.cc/XwkLbm
Create a Post(image): https://wireframe.cc/jiyxth
View an Image Post: https://wireframe.cc/vzCC6y
View a Text Post: https://wireframe.cc/wEpFRi
Route | Methods | Purpose |
---|---|---|
/api/register | POST | User account creation |
/api/user/:id | GET, PUT, DELETE | Get, edit, or delete User account information |
/api/user/:id/post | GET | Get posts associated with the User |
/api/user/:id/comments | GET | Get comments associated with the User |
/api/user/:id/subreaddit/:subreadditId - post/delete
Route | Methods | Purpose |
---|---|---|
/api/subreaddit/create | POST | creating subreaddits |
/api/subreaddit/:subreadditId | GET, PUT, DELETE | subreaddit retrieval. edit / delete if owner |
/api/subreaddits/:subreadditId/post/ | GET | what was this for again? |
/api/post/:postId | GET, POST, PUT, DELETE | CRUD Posts |
/api/post/:postId/karma/ | GET, POST | Upvote and downvote |
Route | Methods | Purpose |
---|---|---|
/ | GET | display top posts from subreaddits you follow |
/login | POST | Login Functionality |
/register | POST | User creation form |
/r/:subreaddit | GET | Subreaddit view page |
/r/:subreaddit/posts/:postId | GET | Viewing a post within a subreaddit |
/subreaddits/create | GET, POST | Form for creating a subreaddit |
/posts/create | GET, POST | Form for creating a post |
/u/user/:user | GET, PUT, DELETE | User profile page |
/u/user/:user/comments | GET | User comments |