API 목록

GET: 이미지 파일 URL 조회

Http Request
GET /files/images/8a463aa4-b1dc-4f27-9c3f-53b94dc45e74.jpg HTTP/1.1
Host: localhost:8080
Table 1. /files/images/{uuid}
Parameter Description

uuid

이미지 파일의 UUID

Http Response
HTTP/1.1 301 Moved Permanently
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Location: https://s3.amazonaws.com/my-bucket/images/8a463aa4-b1dc-4f27-9c3f-53b94dc45e74.jpg
Table 2. Http Response Headers
Name Description

Location

S3에서 제공되는 Public URL

GET: 문서 파일 Presigned URL 생성

Http Request
GET /files/documents/8a463aa4-b1dc-4f27-9c3f-53b94dc45e74.pdf HTTP/1.1
Host: localhost:8080
Table 3. /files/documents/{uuid}
Parameter Description

uuid

PreSigned URL을 생성할 문서의 UUID

Http Response
HTTP/1.1 302 Found
Vary: Origin
Vary: Access-Control-Request-Method
Vary: Access-Control-Request-Headers
Location: https://s3.amazonaws.com/my-bucket/documents/8a463aa4-b1dc-4f27-9c3f-53b94dc45e74.pdf?signature=123
Table 4. Http Response Headers
Name Description

Location

S3에서 제공되는 PreSigned URL