Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 753 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 753 Bytes

In Memory Document Store

In memory document storage system designed for faster retrieval & read times compared to a traditional file system.

Installation

For running this project locally run the run.sh script within the src directory

Usage

File Creation

To create a file, make a POST request to the default route / with an id parameter of the file name.

E.g. of JSON file:

curl -X POST -H 'Content-Type: application/json' -d '{
    "data": "some data",
    "type": "this is a test",
}' http://localhost:4203?id=test

File retrieval

To retrieve a file, make a GET request to the default route / with the id paramater of the file name.

E.g. of file retrieval:

curl http://locahost:4203?id=test