loader README ================== Getting Started --------------- - cd <directory containing this file> - $VENV/bin/pip install -e . - $VENV/bin/pserve development.ini API EXAMPLES ================= GET: Request: - curl -i -X GET http://localhost:6565/api/v1/files/<file_key> Response: File data. POST: Request: - curl -i -X POST -H "Content-Type: multipart/form-data" -F "data=<file_path>" http://localhost:6565/api/v1/files Response: HTTP/1.1 100 Continue HTTP/1.1 200 OK Content-Length: 54 Content-Type: application/json Date: Sat, 24 Jun 2017 20:44:56 GMT Server: waitress { "file_key": "a2149e38bdf947d4ada09ab1f98706c6" }% DELETE: Request: - curl -i -X DELETE http://localhost:6565/api/v1/files/<file_key> Response: DELETED! PUT: Request: - curl -i -X PUT -H "Content-Type: multipart/form-data" -F "data=<file_path>" http://localhost:6565/api/v1/files/<file_key> Response: - UPDATED!