Skip to content

Backend API for a google drive like app built using NodeJS, Express, Mongoose, MongoDB Atlas and AWS S3 for storage.

Notifications You must be signed in to change notification settings

imbickydutta/file-system-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

file-system-backend

Backend API for a file system like google drive / drop-box.

Documentation for API :-

Sign Up

Login

Get Root

Post/Create Folder

Post/Upload File

Get Folder Details

Delete Folder

Delete File

Move Folder

  • Method : PATCH
  • URL : https://drive-system.herokuapp.com/drive/move?path=< enter path here >/
  • Query path example : root/folder1/childfolder1/grandchild1/
  • Query path is the path of the folder that we want to move
  • Req Body example : {"newParentPath": "root/folder2/childfolder1/"}
  • Req body path is the path of the folder where the original folder is moved
  • Use token as Bearer token

Move Folder

  • Method : PATCH
  • URL : https://drive-system.herokuapp.com/drive/moveFile?path=< enter path here >/
  • Query path example : root/folder1/childfolder1/grandchild1/fileName.txt
  • Query path is the path of the file that we want to move
  • Req Body example : {"newParentPath": "root/folder2/childfolder1/"}
  • Req body path is the path of the folder where the original folder is moved
  • Use token as Bearer token

Rename Folder

  • Work under progress (needs some rework)
  • Method : PATCH
  • URL : https://drive-system.herokuapp.com/drive/rename?path=< enter path here >/
  • Query path example : root/folder1/childfolder1/oldFolderName/
  • Query path is the path of the folder that we want to rename
  • Req Body example : {"newName": "newFolderName"}
  • Req body newName is the new name of the folder
  • Use token as Bearer token

Rename File

  • Work under progress (needs some rework)
  • Method : PATCH
  • URL : https://drive-system.herokuapp.com/drive/rename?path=< enter path here >/
  • Query path example : root/folder1/childfolder1/oldFileName.txt
  • Query path is the path of the folder that we want to rename
  • Req Body example : {"newFileName": "newFileName.txt"}
  • Req body newName is the new name of the folder
  • Use token as Bearer token

About

Backend API for a google drive like app built using NodeJS, Express, Mongoose, MongoDB Atlas and AWS S3 for storage.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published