Objects API
객체 저장소(S3) 관리를 위한 API입니다.
개요
Objects API를 통해 코드 파일, 설정 파일 등의 바이너리 객체를 저장하고 관리할 수 있습니다.
엔드포인트
GET /api/v1/objects/{object_id}
객체를 다운로드합니다.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
object_id | string | Yes | 객체 ID |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
object_version | string | No | 특정 버전 다운로드 |
Response
파일 바이너리 데이터를 반환합니다.
PUT /api/v1/objects/{object_id}
객체를 업로드합니다.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
object_id | string | Yes | 객체 ID |
Request Body
multipart/form-data 형식으로 파일을 업로드합니다.
Response
200 OK
{
"message": "Object uploaded successfully"
}
DELETE /api/v1/objects/{object_id}
객체를 삭제합니다.
Response
200 OK
{
"message": "Object deleted successfully"
}
GET /api/v1/objects/{object_id}/versions
객체의 버전 히스토리를 조회합니다.
Response
200 OK
[
{
"version_id": "v3",
"last_modified": "2024-01-20T10:30:00Z",
"size": 4096
}
]