{
  "openapi": "3.0.3",
  "info": {
    "title": "Mohamed Abdelaziz API",
    "version": "1.0.0",
    "description": "Secure file API for public and private data."
  },
  "servers": [
    {
      "url": "https://api.mohamedabdelaziz.dev"
    }
  ],
  "paths": {
    "/api/health": {
      "get": {
        "summary": "Health check"
      }
    },
    "/api/openapi.json": {
      "get": {
        "summary": "OpenAPI spec"
      }
    },
    "/api/v1/files/{key}": {
      "get": {
        "summary": "Download file"
      },
      "put": {
        "summary": "Upload or replace file"
      },
      "delete": {
        "summary": "Delete file"
      }
    },
    "/api/v1/datasets": {
      "get": {
        "summary": "List datasets"
      }
    },
    "/api/v1/datasets/{key}": {
      "get": {
        "summary": "Get dataset metadata"
      }
    },
    "/api/v1/rows/{key}": {
      "get": {
        "summary": "Get parsed rows"
      }
    },
    "/api/v1/stats": {
      "get": {
        "summary": "Statistics"
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      },
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  }
}