From 4a0bd6243249687846f395df1ef731846da797cb Mon Sep 17 00:00:00 2001 From: Pihkaal Date: Sat, 11 Apr 2026 19:53:32 +0200 Subject: [PATCH] chore: update README --- README.md | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0994526..90e9fcd 100644 --- a/README.md +++ b/README.md @@ -14,4 +14,34 @@ Simple, bullshit-free QR code generator with straightforward API. ## Stack -- [Nuxt 4](https://nuxt.com) + [Nuxt UI](https://ui.nuxt.com)a +- [Nuxt 4](https://nuxt.com) + [Nuxt UI](https://ui.nuxt.com) + +## API + +### `GET /api` - Generate a QR code + +Returns the QR code as an image file. + +| Parameter | Type | Required | Description | +|-----------|---------------------------|----------|-----------------------------------------------------| +| `content` | string | yes | Data to encode | +| `format` | `png` \| `jpeg` \| `webp` | no | Output format (default: `png`) | +| `logo` | string | no | Logo name to embed in the center (case-insensitive) | + +**Example:** +``` +GET https://simple-qr.com/api?content=https://git.pihkaal.me&format=webp&logo=gitea +``` + +### `GET /api/logos` - List available logos + +Returns a JSON array of available logo names. + +**Example:** +``` +GET https://simple-qr.com/api/logos +``` + +```json +["signal", "monero", "session", ...] +```