An open API service indexing awesome lists of open source software.

https://github.com/lupusanay/image-resize

Flask async REST service for image resizing
https://github.com/lupusanay/image-resize

celery docker flask python

Last synced: about 2 months ago
JSON representation

Flask async REST service for image resizing

Awesome Lists containing this project

README

          

# 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:
```http request
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
```http request
GET /status/ 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
```http request
GET /operation/result/ 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