Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/gfrn/quote-api
- Owner: gfrn
- License: gpl-3.0
- Created: 2021-11-02T15:11:26.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-11-02T20:34:04.000Z (about 3 years ago)
- Last Synced: 2024-11-08T13:25:29.394Z (2 months ago)
- Language: Python
- Size: 870 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)