채팅방 내 파일 리스트 조회
SuyeonChoi edited this page Feb 17, 2022
·
5 revisions
GET
/api/file/chatroom/{chatroomId}
Method | Parameter | Description |
---|---|---|
Content-Type | application/json | |
token | {token} | access token값 |
Field | Type | Description | Required |
---|---|---|---|
chatroomId | String | 채팅방 ID | Y |
Method | Parameter | Description |
---|---|---|
statusCode | {statusCode} |
Field | Type | Description |
---|---|---|
status | Integer | 응답 코드 |
message | String | 응답 메세지 |
data | Object List | 파일 리스트. data 참고 |
Field | Type | Description |
---|---|---|
id | Long | 파일 ID |
url | String | 파일 S3 URL |
title | String | 파일명 |
extension | String | 파일 확장자 |
createdDate | LocalDateTime | 파일 업로드 날짜 |
{
"status": 200,
"messsage": "채팅방 파일 리스트 조회 성공",
"data": [
{
"id": 1,
"url": "https://flametalk-bucket.s3.ap-northeast-2.amazonaws.com/profile/flametalk_a_20222621172609.JPG",
"title": "flametalk_profile_12_1",
"extension": "jpeg",
"createdDate": "2022-01-14T10:52:39"
},
{
"id": 12,
"url": "https://flametalk-bucket.s3.ap-northeast-2.amazonaws.com/profile/flametalk_ab_20222621172609.JPG",
"title": "flametalk_profile_12_12",
"extension": "jpeg",
"createdDate": "2022-01-14T10:52:39"
}
]
}
Code | Error Messsage |
---|---|
400 | Bad Request |
401 | Unauthorized |
500 | Server Error |
{
"status": 400,
"message": "잘못된 요청입니다.",
"error": "BAD_REQUEST",
"code": "BAD_REQUEST",
"timestamp": "2022-01-18T19:30:16.3072905",
}
-
게이트웨이(API Gateway)
-
인증(Authentication)
-
디바이스(Device)
-
채팅방(Chatroom)
-
채팅(Chat)
-
프레젠스(Presence)
-
멤버십(Membership) - 친구
-
멤버십(Membership) - 프로필
-
멤버십(Membership) - 오픈 프로필
-
멤버십(Membership) - 피드
-
파일(File)