Skip to content

Commit cab521c

Browse files
committed
change download doc method
1 parent 4c1cd80 commit cab521c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

code/go/0chain.net/blobbercore/handler/object_operation_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ func (fsh *StorageHandler) RedeemReadMarker(ctx context.Context, r *http.Request
263263
}, nil
264264
}
265265

266-
// swagger:route POST /v1/file/download/{allocation} downloadFile
266+
// swagger:route GET /v1/file/download/{allocation} downloadFile
267267
// Download Handler (downloadFile)
268268
// parameters:
269269
// +name: allocation

swagger.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Documentation of the blobber API.
3434
| GET | /v1/connection/create/{allocation} | [connection handler](#connection-handler) | |
3535
| GET | /v1/file/copy/{allocation} | [copyallocation](#copyallocation) | |
3636
| GET | /v1/dir/{allocation} | [createdirhandler](#createdirhandler) | |
37-
| POST | /v1/file/download/{allocation} | [download file](#download-file) | |
37+
| GET | /v1/file/download/{allocation} | [download file](#download-file) | |
3838
| GET | /v1/file/list/{allocation} | [list](#list) | |
3939
| GET | /v1/file/move/{allocation} | [moveallocation](#moveallocation) | |
4040
| GET | /v1/file/refs/recent/{allocation} | [recentalloc](#recentalloc) | |
@@ -300,7 +300,7 @@ Status: Internal Server Error
300300
### <span id="download-file"></span> download file (*downloadFile*)
301301

302302
```
303-
POST /v1/file/download/{allocation}
303+
GET /v1/file/download/{allocation}
304304
```
305305

306306
Download Handler (downloadFile)

swagger.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ paths:
611611
"500":
612612
description: ""
613613
/v1/file/download/{allocation}:
614-
post:
614+
get:
615615
description: Download Handler (downloadFile)
616616
operationId: downloadFile
617617
parameters:

0 commit comments

Comments
 (0)