Objects API
API for object storage (S3) management.
Overview
Through the Objects API, you can store and manage binary objects such as code files and configuration files.
Endpoints
GET /api/v1/objects/{object_id}
Downloads an object.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
object_id | string | Yes | Object ID |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
object_version | string | No | Download specific version |
Response
Returns file binary data.
PUT /api/v1/objects/{object_id}
Uploads an object.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
object_id | string | Yes | Object ID |
Request Body
Upload file in multipart/form-data format.
Response
200 OK
{
"message": "Object uploaded successfully"
}
DELETE /api/v1/objects/{object_id}
Deletes an object.
Response
200 OK
{
"message": "Object deleted successfully"
}
GET /api/v1/objects/{object_id}/versions
Retrieves the version history of an object.
Response
200 OK
[
{
"version_id": "v3",
"last_modified": "2024-01-20T10:30:00Z",
"size": 4096
}
]