-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.http
94 lines (78 loc) · 2.09 KB
/
api.http
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
89
90
91
92
93
94
### RoomCategory
### 전체 방 카테고리 목록 불러오기
GET http://localhost:3000/api/rooms/categories
### Room
### 전체 방 목록 불러오기
GET http://localhost:3000/api/rooms
### "휴식" 카테고리의 방 목록 불러오기
GET http://localhost:3000/api/rooms?categoryName=학습
### 방 자세히 불러오기
GET http://localhost:3000/api/rooms/19
### 방 등록하기
POST http://localhost:3000/api/rooms
Content-Type: application/json
Authorization: Bearer {{$dotenv authToken }}
{
"title": "테스트",
"description": "설명",
"categoryId": 3,
"light": "TWO",
"wallColor": "GREEN",
"objectIds": {
"board": 1,
"clock": 1,
"light": 1,
"poster": 1,
"speaker": 1,
"table": 1,
"vase": 1,
"wall": 1
},
"background": "SUNNY",
"assets": [{
"type": "image",
"url": "https://floom-upload.s3.ap-northeast-2.amazonaws.com/5X6Dt7ri3__2a0hiak8KJ.png"
}],
"tags": ["test1", "test2"],
"roomImage": "https://floom-upload.s3.ap-northeast-2.amazonaws.com/-ruDAbdraL_7P6z7ZXRHs.png",
"musicIds": [4, 5, 6],
"guestBooksEnabled": false,
}
### RoomGuestbook
### 방명록 생성하기
POST http://localhost:3000/api/rooms/19/guest-books
Content-Type: application/json
{
"body": "hello"
}
### 방명록 불러오기
GET http://localhost:3000/api/rooms/19/guest-books
### MusicCategory
### 전체 음악 카테고리 목록 불러오기
GET http://localhost:3000/api/musics/categories
### Music
### 음악 목록 불러오기
GET http://localhost:3000/api/musics
### 카테고리 별로 음악 목록 불러오기
GET http://localhost:3000/api/musics?categoryId=1
### Review
### 리뷰 목록 불러오기
GET http://localhost:3000/api/reviews?roomId=19
### 리뷰 등록
POST http://localhost:3000/api/reviews
Content-Type: application/json
{
"roomId": 1,
"objective": "123",
"comment": "123",
"recommend": false
}
### Common
### pre-signed 업로드 생성하기
POST http://localhost:3000/api/common/pre-upload
Content-Type: application/json
Authorization: Bearer {{$dotenv authToken }}
{
"filename": "a.png",
"contentType": "image/png"
}