-
Notifications
You must be signed in to change notification settings - Fork 0
/
rest.http
29 lines (24 loc) · 881 Bytes
/
rest.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# This REST.http file defines the API endpoints for interacting with the multipart upload service.
@baseUrl = http://localhost:8080
###
# Initiate a multipart upload.
GET {{baseUrl}}/initiate?key=my-object-key
###
# Get a presigned URL for a specific part of the multipart upload.
GET {{baseUrl}}/presigned?key=my-object-key&uploadId=QkCA4AZbPtOllsOBisZGicV3p0sATbaGa3ujkQE.EsRP6MiodvP0P0p1pDMGgsXa6qwb6zwE.jwBTkQnv4933C72&partNumber=2
###
# Complete a multipart upload.
POST {{baseUrl}}/complete?key=my-object-key&uploadId=QkCA4AZbPtOllsOBisZGicV3p0sATbaGa3ujkQE.EsRP6MiodvP0P0p1pDMGgsXa6qwb6zwE.jwBTkQnv4933C72
Content-Type: application/json
{
"parts": [
{
"partNumber": 1,
"etag": "\"d41d8cd98f00b204e9800998ecf8\""
},
{
"partNumber": 2,
"etag": "\"d41d8cd98f00b204e9800998ecf\""
}
]
}