Simple RESTful file delivery to play around with.
python -m venv venv
Linux:
./venv/bin/pip install -r requirements.txt
Windows:
venv\scripts\pip install -r requirements.txt
FLASK_APP=venomfs
FLASK_ENV=development
VENOM_FS_ROOT=data
Linux:
./venv/bin/python3 -m flask run
Windows:
venv\scripts\python -m flask run
Linux:
docker build -t venomfs .
docker run -it -p 5000:5000 --name venomfs venomfs
Windows:
docker build -t venomfs -f Windows.Dockerfile .
docker run -it -p 5000:5000 --name venomfs venomfs
GET /_file/?path=sample_dir/sample.json
-> Binary file content
GET /_file/has?path=sample_dir/sample.json
-> "True" / "False"
POST /_file/?path=sample_dir/sample.json [BODY]: Binary file content
-> 201 if successful
GET /_file/list?path=sample_dir
-> []
GET /_dir/list?path=sample_dir
-> []