Skip to content
This repository has been archived by the owner on Jan 25, 2023. It is now read-only.

Latest commit

 

History

History
31 lines (20 loc) · 646 Bytes

README.md

File metadata and controls

31 lines (20 loc) · 646 Bytes

Image preview

A sample REST application written in Go.

Run

Deploy application into a Docker container:

make run-dev-docker

The application's only endpoint is http://<host>:9090/api/images/previews

It accepts JSON and multipart form requests.

Sample JSON request:

{
	"images": ["https://avtoreliz.com/wp-content/uploads/2015/04/infiniti-vision-gt-1.jpg"]
}

An image is either URL or Base64 encoded image data.

Form request is intended to contain single or repeated image text field with the same possible values as a JSON image.

image file uploading is also supported.

Test

Run tests:

make test