Description
A simple API that will allow you to upload and retrieve files from a specified location. It uses media type Collection+JSON in order to send the appropriate information back through the HTTP response. It supports, uploading, retrieveing and deleting of files along with retreiving the entire list of files. Server is written in node and data is stored in a sqlite database. Server will write to a log file information about all requests that are made to that address.
======================= Command line arguments
run server: node NodeServer.js
======================= File List
fileCollection NodeServer.js package.json logFile.json
======================= Requests/Url's
-fileid is a space for the id of the file you are wanting to interact with-
GET
POST
HEAD
======================= Response Outlines
-These are example responses for a GET request to the specified url-
======================= Database 'fileCollection'
---------------- ----------------------
| **file** | | **File List** |
| (type) | Item | (names) | <------------
| (size) | <------------- | (total size) |
| (date) | | (number) |
| (name) | ----------------------
---------------- ^
| |
------------------------------------
Collection