Generates a signed URL for uploading a file from Google Drive.
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/file/get-drive-signed-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"driveFileId": "drive-file-id-123",
"fileMetaData": {
"originalname": "royalty.csv",
"mimetype": "text/csv"
}
}'
{
"success": true,
"message": "Signed Google Drive upload URL generated",
"data": {
"signedUrl": "https://storage.googleapis.com/royalti-uploads/royalty/drive-file-id-123?signature=..."
}
}
JWT Authorization header using the Bearer scheme. Format: "Bearer {token}"
Signed Google Drive upload URL generated
The response is of type object
.
curl --request POST \
--url https://server26-dot-royalti-project.uc.r.appspot.com/file/get-drive-signed-url \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"driveFileId": "drive-file-id-123",
"fileMetaData": {
"originalname": "royalty.csv",
"mimetype": "text/csv"
}
}'
{
"success": true,
"message": "Signed Google Drive upload URL generated",
"data": {
"signedUrl": "https://storage.googleapis.com/royalti-uploads/royalty/drive-file-id-123?signature=..."
}
}