Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 907 Bytes

README.md

File metadata and controls

35 lines (27 loc) · 907 Bytes

Image Resize

Flask async REST service using for image resizing

Usage: docker-compose up

Further information can be found in the documentation on Docker and Docker Compose

API Reference:

Create resize task:

POST /operation/resize HTTP/1.1

Content-Type: multipart/form-data

Accepts a file in mulipart/form-data format and json with height and width parameters Returns a json with created task id, or error

Get task state

GET /status/<uuid:task_id> HTTP/1.1

Accepts a task id in UUID format as a GET parameter, and returns state of that task, or returns 404 if there is not task with given id

Get task result

GET /operation/result/<uuid:task_id> HTTP/1.1

Accepts a task id in UUID format as a GET parameter, and returns result of that task, or returns 404 if there is not task with given id or it's not completed yet