-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInitial Spec sketch.txt
88 lines (58 loc) · 1.48 KB
/
Initial Spec sketch.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
// Better Revature Connect
================================================================
Users table {
user_id,
username,
password,
Display Name,
// maybe user theme
}
Post table {
post_id,
user_id,
timestamp,
content string,
// maybe edited
}
Like table { // join table
user_id,
post_id,
}
comment table {
user_id,
post_id,
comment string
}
================================================================ services
Make new posts
Delete posts
comment on posts
like posts
Sign up (Create new users)
log in
Close Account
Search for posts
Get posts (most recent posts)
Get User Account info
======================================================== front end
Account info
Landing Main page
Log in page
Sign up page
=========================================================== Endpoints
USER ENDPOINTS
GET /user <-- get user account info
POST /user/registration <-- create new user account
POST /user/login <-- login
DELETE /user <-- delete user account
PATCH /user <-- update user info
POST ENDPOINTS
GET /post <-- get visible posts
POST /post <-- create new post
POST /post/{id}/like <-- like a post {id}
POST /post/{id}/comment <-- comment on a post {id}
GET /post/{id}/comment <-- view comments on post {id}
PATCH /post/{id} <-- update a post {id}
DELETE /post/{id} <-- delete post {id}
DELETE /post/{id}/comment/{commentId} <-- delete a comment on post {id} with {comment_id}
DELETE /post/{id}/like <-- unlike post {id}