diff --git a/1.2-BACKEND-APIs.md b/1.2-BACKEND-APIs.md index 72af4e2..dce8556 100644 --- a/1.2-BACKEND-APIs.md +++ b/1.2-BACKEND-APIs.md @@ -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 ``` ---