GET/boards/{boardId}/posts/{postId}/attachments

본문에 삽입된 이미지/동영상은 조회할 수 없다.

Authorization

oauth2

OAuth 2.0 인증.
자세한 인증 방식은 인가·인증를 참고한다.

Scope

board
board.read

HTTP Request

GEThttps://www.worksapis.com/v1.0/boards/{boardId}/posts/{postId}/attachments

Path Parameters

ParameterTypeDescription
boardId integer 

게시판 ID


required
example : 100
format : int64 
postId integer 

게시글 ID


required
example : 1
format : int64 

Query Parameters

ParameterTypeDescription
count integer 

목록 조회 개수


default : 20
minimum : 1
maximum : 20
example : 10
format : int32 
cursor string 

다음 목록 조회 시 사용하는 값


example : JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA== 

Header Parameters

HeadertypeDescription
Authorization string 

Bearer {token}


required 

Response

HTTP 200

OK

PropertyTypeDescription
attachments array (object) 
 
responseMetaData object (responseMetaData) 

페이징 처리를 위한 메타데이터

 

object

PropertyTypeDescription
attachmentId string 

파일 ID


required
readOnly : true 
fileName string 

파일 이름


required 
fileSize integer 

파일 크기(단위: bytes)


required
format : int64 
createdTime string 

생성 시간

  • 날짜 및 시간, 분, 초 형식(YYYY-MM-DDThh:mm:ssTZD)

required
format : date-time
readOnly : true 

responseMetaData

PropertyTypeDescription
nextCursor string 

다음 페이지 조회를 위한 커서

 

Response Example

example

1{2  "attachments": [3    {4      "attachmentId": "kr1.1234.5678.1000000000000000001.0.100000000004",5      "fileName": "ExampleFile.pdf",6      "fileSize": 10240000,7      "createdTime": "2022-10-28T17:26:35+09:00"8    }9  ],10  "responseMetaData": {11    "nextCursor": "JlIBsfJogXpzDGY8OscZziqZpYqCAu3RbZbaFzBb1od6lWQtSdPUd2FIdCuaGgu8DA=="12  }13}