Skip to content

uddalakdas/nodejs-simple-file-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nodejs-simple-file-server

a basic file server written in nodejs

Allowed operations:

  • GET --> /job --> return the list of active jobs
  • POST --> /job/new --> create a new job and return the id
  • GET --> /job/:job-id/state --> return job state (ready/uploading/uploaded/copied)
  • POST --> /job/:job-id/state/uploaded --> change the job state to uploaded
  • POST --> /job/:job-id/state/copied --> change the job state to copied
  • GET --> /job/:job-id/upload --> return list of files uploaded
  • POST --> /job/:job-id/upload {name: fileName, content: fileContent} --> upload a file in server
  • GET --> /job/:job-id/file/:file-name --> return requested file

A configurable clean job periodically check and delete old job

Added extra lines..!!s Something changed Another channge

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors