- run http server
go run main.go -basePath=/tmp/ -port=8080
- Uploading an image: example curl request:
curl -X POST http://localhost:8080/api/v1/image \
-F "file=@/tmp/image" \
-H "Content-Type: multipart/form-data"
- Downloading an image: example curl request:
curl -v -X GET http://localhost:8080/api/v1/image/1
- ./hack/test.sh
- ./hack/run_locally.sh