From 134f8ac931ea2a3f82926b195b32fec3c85a6520 Mon Sep 17 00:00:00 2001 From: Kshitij <160704796+kshitij-ka@users.noreply.github.com> Date: Sat, 2 Aug 2025 15:54:05 +0530 Subject: [PATCH] updated downlaod api. no longer passing password in url. --- 1.2-BACKEND-APIs.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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 ``` ---