-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnotes.txt
More file actions
81 lines (68 loc) · 1.15 KB
/
Copy pathnotes.txt
File metadata and controls
81 lines (68 loc) · 1.15 KB
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
API USER ROUTER (Completed)
1. POST /api/user/signup
body -
fullName, email, password, phone, birthDate
res -
User
JWT token
2. POST /api/user/signin
body -
email
password
res -
JWT token
3. POST /api/user/signout
header -
Authorization: Bearer <token>
4. GET /api/user/me
header -
Authorization: Bearer <token>
res -
User
5. PATCH /api/user/me
header -
Authorization: Bearer <token>
body -
fullName / email / password / phone
res -
User
6. DELETE /api/user/me
header -
Authorization: Bearer <token>
7. POST /api/user/avatar
header -
Authorization: Bearer <token>
form-data -
avatar
res (image/jpeg) -
avatar
8. GET /api/user/avatar
header -
Authorization: Bearer <token>
res (image/jpeg) -
avatar
9. POST /api/user/bookmarks
header -
Authorization: Bearer <token>
body:
property (id)
10. POST /api/user/recents
header -
Authorization: Bearer <token>
body:
property (id)
11. DELETE /api/user/bookmarks
header -
Authorization: Bearer <token>
body:
property (id)
12. GET /api/user/bookmarks
header -
Authorization: Bearer <token>
res -
Property (list)
13. GET /api/user/recents
header -
Authorization: Bearer <token>
body:
Property (list)