Table Thumbnails

Upload Thumbnails

post

Uploads thumbnail images directly to the server using multipart form-data.

Body
testkey01string · binaryRequired

The first image file to upload.

testkey02string · binaryRequired

The second image file to upload.

Responses
200

Successful upload

application/json
post
POST /middlewareapi/thumbnails HTTP/1.1
Host: 
Content-Type: multipart/form-data
Accept: */*
Content-Length: 43

{
  "testkey01": "binary",
  "testkey02": "binary"
}
[
  {
    "tableCode": "testkey01",
    "uploadStatus": "complete: thumbnails/testkey01"
  },
  {
    "tableCode": "testkey02",
    "uploadStatus": "complete: thumbnails/testkey02"
  }
]

Get Pre-signed URLs for Thumbnails

post

Generates pre-signed URLs for uploading thumbnail images. Use the returned URLs to upload files with a PUT request.

Body
table_codesstringRequired

A comma-separated list of table codes for which pre-signed URLs are to be generated.

Example: testkey01,testkey02
Responses
200

Successfully generated pre-signed URLs

application/json
post
POST /middlewareapi/thumbnails-uploadUrl HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 37

{
  "table_codes": "testkey01,testkey02"
}
[
  {
    "key": "thumbnails/testkey01",
    "presignedUrl": "https://eslot-bucket-01.s3.ap-southeast-1.amazonaws.com/thumbnails/testkey01?AWSAccessKeyId=AKIAVGKNGFYVVRZQACFM&Content-Type=image%2Fjpeg&Expires=1732849629&Signature=wLRJsj7XtplrWRMA8BYboHvfgMI%3D"
  },
  {
    "key": "thumbnails/testkey02",
    "presignedUrl": "https://eslot-bucket-01.s3.ap-southeast-1.amazonaws.com/thumbnails/testkey02?AWSAccessKeyId=AKIAVGKNGFYVVRZQACFM&Content-Type=image%2Fjpeg&Expires=1732849629&Signature=sHz5rBoLf7GQKEKABjvP8eWjcKo%3D"
  }
]

Last updated