Skip to content

nandcoder/fs-crud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File-System-CRUD-API

  • It's a file system api, which can do CRUD operations.
  • It's built on REST api architecture.
  • Below is the description table.

Don't forget to read the Note below :)

Format : {HostedURL}/{endPointURL}

Task Method/HTTP Verb Path/ Endpoint URL
1. Upload a file ( as form data : key=file-upload & value={filetobeuploaded} ) POST /files/upload
2. Get list of all files GET /files
3. Download a file GET /files/{filename}
4. Update a file ( new file as form data ) PUT /files/update/{filename}
5. Delete a file DELETE /files/delete/{filename}

Demo/Usage

1. Upload a file : image

2. Downoad a file : image

Note

  1. File Size Limit is 5MB .
  2. In task 1, key must be named as "file-upload"
  3. Don't forget to clear the form data(uncheck key-value pair) while doing task 2, 3, and 5.
  4. In task 4, in /files/update/{filename}, {filename} is the name of file that is to be replaced with the new file.

About

Created using NodeJS and ExpressJS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published