-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathusers.http
More file actions
48 lines (35 loc) · 926 Bytes
/
users.http
File metadata and controls
48 lines (35 loc) · 926 Bytes
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
GET http://localhost:3000/users
###
GET http://localhost:3000/users/b8f11e76-0a9e-4b3f-bccf-8d9b4fbf331e
###
POST http://localhost:3000/users
Content-Type: application/json
{
"email": "yjkim@example.com",
"firstName": "유진",
"lastName": "김",
"address": "대전광역시 동구 대전로779번길 5",
"userPreference": {
"receiveEmail": false
}
}
###
PATCH http://localhost:3000/users/b8f11e76-0a9e-4b3f-bccf-8d9b4fbf331e
Content-Type: application/json
{
"address": "서울특별시 성북구 화랑도 11길 30",
"userPreference": {
"receiveEmail": false
},
"favorites": {
"productId": "c28a2eaf-4d87-4f9f-ae5b-cbcf73e24253"
}
}
###
DELETE http://localhost:3000/users/e2d6c8c9-ec95-47a5-8328-951233798c35
###
POST http://localhost:3000/users/b8f11e76-0a9e-4b3f-bccf-8d9b4fbf331e/save
Content-Type: application/json
{
"productId": "c28a2eaf-4d87-4f9f-ae5b-cbcf73e24253"
}