crud-file-server
build license crates docker

A simple HTTP file server with PUT, GET and DELETE methods.

Environment Variables

Example

Start

$ cargo run

Create (upload)

$ curl localhost:8000 --data-binary @<file_path> 3718021f-1c23-4dcb-9a90-6d1a74709744

Read (download)

$ curl localhost:8000/3718021f-1c23-4dcb-9a90-6d1a74709744 <file>

Update (overwrite)

$ curl localhost:8000/3718021f-1c23-4dcb-9a90-6d1a74709744 -X put --data-binary @<file_path>

Delete

$ curl localhost:8000/3718021f-1c23-4dcb-9a90-6d1a74709744 -X delete

Docker Image

$ docker run -p 8000:8000 rasmusmerzin/crud-file-server

Cargo Crate

$ cargo install crud-file-server