{
  "name": "Image Resizer & Text Transformer API",
  "version": "1.0.0",
  "endpoints": {
    "resize": {
      "method": "POST",
      "path": "/resize",
      "description": "Resize images using Cloudflare Image Resizing",
      "body": {
        "imageUrl": "URL of the image to resize (required)",
        "width": "Target width in pixels (optional, default: 800)",
        "height": "Target height in pixels (optional, default: 600)",
        "format": "Output format: auto, webp, avif, json (optional, default: auto)"
      },
      "example": {
        "imageUrl": "https://example.com/image.jpg",
        "width": 400,
        "height": 300,
        "format": "webp"
      }
    },
    "transform": {
      "method": "POST",
      "path": "/transform",
      "description": "Transform text with various operations",
      "body": {
        "text": "Text to transform (required)",
        "operation": "uppercase, lowercase, reverse, capitalize, count"
      },
      "example": {
        "text": "hello world",
        "operation": "uppercase"
      }
    }
  },
  "features": [
    "Edge-based image resizing",
    "Multiple format support (WebP, AVIF)",
    "Text transformations",
    "Global CDN caching",
    "Sub-50ms response times"
  ]
}