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

Sample REST application in Go. Returns images scaled to 100x100.

Notifications You must be signed in to change notification settings

SladeThe/image-preview

Repository files navigation

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

About

Sample REST application in Go. Returns images scaled to 100x100.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published