DennisDenuto / progimage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Description

Quick start

  1. run http server go run main.go -basePath=/tmp/ -port=8080
  2. 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"
  1. Downloading an image: example curl request:
curl -v -X GET http://localhost:8080/api/v1/image/1  

Run tests:

  1. ./hack/test.sh

Run as a docker container

  1. ./hack/run_locally.sh

About


Languages

Language:Go 97.5%Language:Shell 2.5%