Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/gfrn/quote-api

Simple quote image creation API
https://github.com/gfrn/quote-api

Last synced: about 1 month ago
JSON representation

Simple quote image creation API

Awesome Lists containing this project

README

        

# quote-api
Simple quote image creation API

## Usage

### Server
Add a selection of PNG/JPG images to `quote-api/images`, then:

```bash
pip3 install -r requirements.txt
flask run
```

### Client
Make a `POST` request to the `/quote/` endpoint, with a JSON body containing the following fields:

```json
{
"quote":"Quote Here",
"author": "Author",
"border_color": "#fff",
"credits": "@credits"
}
```

Only `author` is obligatory.

### Output

![Quotation image example](screenshots/quote.png)