updated downlaod api. no longer passing password in url.
+5
-3
@@ -40,9 +40,11 @@ curl -k -X POST https://localhost:8080/api/files/upload \
|
||||
## File download
|
||||
|
||||
```shell
|
||||
curl -k -X GET "https://localhost:8080/api/files/download/15-102-98.mp4?password=Pass@123" \
|
||||
-H "Authorization: Bearer $JWT" \
|
||||
--output 15-102-98.mp4
|
||||
curl -k -X GET "https://localhost:8080/api/files/download" \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer $JWT" \
|
||||
-d '{"filename": "15-102-98.mp4", "password": "Pass@123"}' \
|
||||
--output 15-102-98.mp4
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user