You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
| Name | Source | Type | Go type | Separator | Required | Default | Description |
@@ -321,7 +323,7 @@ POST /v1/file/download/{allocation}
321
323
| X-Path |`header`| string |`string`|| ✓ || The path of the file to download. |
322
324
| X-Path-Hash |`header`| string |`string`|||| The hash of the path of the file to download. If not provided, will be calculated from "X-Path" parameter. |
323
325
| X-Read-Marker |`header`| string |`string`|||| The read marker to use for the download (check [ReadMarker](#/responses/ReadMarker)). |
324
-
| X-Verify-Download |`header`| string |`string`|||| If set to "true", the download should be verified. If the mode is "thumbnail", |
326
+
| X-Verify-Download |`header`| string |`string`|||| If set to "true", the download should be verified. If the mode is "thumbnail",\|
325
327
| X-Version |`header`| string |`string`|||| If its value is "v2" then both allocation_id and blobber url base are hashed and verified using X-App-Client-Signature-V2. |
Copy file name to clipboardExpand all lines: swagger.yaml
+22-2Lines changed: 22 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -612,6 +612,7 @@ paths:
612
612
description: ""
613
613
/v1/file/download/{allocation}:
614
614
post:
615
+
description: Download Handler (downloadFile)
615
616
operationId: downloadFile
616
617
parameters:
617
618
- description: TxHash of the allocation in question.
@@ -665,14 +666,33 @@ paths:
665
666
in: header
666
667
name: X-Auth-Token
667
668
type: string
669
+
- description: Download mode. Either "full" for full file download, or "thumbnail" to download the thumbnail of the file
670
+
in: header
671
+
name: X-Mode
672
+
type: string
673
+
- description: If set to "true", the download should be verified. If the mode is "thumbnail",\
674
+
in: header
675
+
name: X-Verify-Download
676
+
type: string
677
+
- description: If its value is "v2" then both allocation_id and blobber url base are hashed and verified using X-App-Client-Signature-V2.
678
+
in: header
679
+
name: X-Version
680
+
type: string
681
+
- description: Digital signature of the client used to verify the request if the X-Version is not "v2"
682
+
in: header
683
+
name: X-App-Client-Signature
684
+
type: string
685
+
- description: Digital signature of the client used to verify the request if the X-Version is "v2"
686
+
in: header
687
+
name: X-App-Client-Signature-V2
688
+
type: string
668
689
responses:
669
690
"200":
670
-
description: FileDownloadResponse
691
+
description: '| []byte'
671
692
schema:
672
693
$ref: '#/definitions/FileDownloadResponse'
673
694
"400":
674
695
description: ""
675
-
summary: DownloadHandler is the handler to respond to download requests from clients.
676
696
/v1/file/list/{allocation}:
677
697
get:
678
698
description: "ListHandler is the handler to respond to list requests from clients, \nit returns a list of files in the allocation,\nalong with the metadata of the files."
0 commit comments