{
  "name": "QR Code API",
  "version": "1.0.0",
  "description": "QR Code generation API (PNG default; SVG optional)",
  "endpoints": {
    "POST/GET /": "Generate QR code with parameters"
  },
  "parameters": {
    "data": "Text to encode (mandatory)",
    "size": "Image size in format WIDTHxHEIGHT (optional, default: 200x200)",
    "charset-source": "Source charset: UTF-8 or ISO-8859-1 (optional, default: UTF-8)",
    "charset-target": "Target charset: UTF-8 or ISO-8859-1 (optional, default: UTF-8)",
    "ecc": "Error correction level: L, M, Q, H (optional, default: L)",
    "color": "Foreground color in RGB format (optional, default: 0-0-0)",
    "bgcolor": "Background color in RGB format (optional, default: 255-255-255)",
    "margin": "Pixel-based margin: 0-50 (optional, default: 1)",
    "qzone": "Module-based quiet zone: 0-100 (optional, default: 0)",
    "format": "Output format: png (default) or svg"
  },
  "examples": [
    "/?data=Hello%20World!&size=200x200",
    "/?data=https://example.com&size=300x300&color=ff0000&bgcolor=ffffff&format=svg"
  ]
}