-
Notifications
You must be signed in to change notification settings - Fork 0
HaideiGV/loader
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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!
About
simple file uploader
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published