{
  "$schema": "https://agentsjson.org/schema.json",
  "version": "1.0",
  "name": "DISH.news API",
  "description": "Medical knowledge API for DISH/Forestier Disease - The world's largest free platform dedicated to DISH",
  "homepage": "https://dish.news",
  "contact": {
    "email": "contact@dish.news",
    "support": "https://dish.news/apoio"
  },
  "terms": "https://dish.news/sobre",
  "privacy": "https://dish.news/sobre",
  "endpoints": [
    {
      "path": "/functions/v1/content-api",
      "methods": ["GET"],
      "description": "Retrieve structured medical content about DISH in multiple languages",
      "parameters": {
        "topic": {
          "type": "string",
          "required": true,
          "enum": ["sobre", "sintomas", "tratamentos", "criterios", "anatomia", "viver"],
          "description": "Content topic to retrieve"
        },
        "language": {
          "type": "string",
          "required": false,
          "default": "pt-BR",
          "enum": ["pt-BR", "en", "es", "fr", "de", "it"],
          "description": "Content language"
        },
        "format": {
          "type": "string",
          "required": false,
          "default": "json",
          "enum": ["json", "markdown"],
          "description": "Response format"
        }
      },
      "authentication": "none",
      "rateLimit": "100 requests/hour per IP",
      "example": "https://mwymgfdjdpbkxaqbpnpo.supabase.co/functions/v1/content-api?topic=sintomas&language=en"
    },
    {
      "path": "/functions/v1/medical-knowledge-api",
      "methods": ["GET"],
      "description": "Search DISH medical knowledge base with AI-powered semantic search",
      "parameters": {
        "query": {
          "type": "string",
          "required": true,
          "maxLength": 500,
          "description": "Search query for medical knowledge"
        },
        "language": {
          "type": "string",
          "required": false,
          "default": "pt-BR",
          "enum": ["pt-BR", "en", "es", "fr", "de", "it"],
          "description": "Response language"
        },
        "limit": {
          "type": "integer",
          "required": false,
          "default": 5,
          "min": 1,
          "max": 20,
          "description": "Maximum number of results"
        }
      },
      "authentication": "none",
      "rateLimit": "50 requests/hour per IP",
      "example": "https://mwymgfdjdpbkxaqbpnpo.supabase.co/functions/v1/medical-knowledge-api?query=dysphagia&language=en"
    },
    {
      "path": "/functions/v1/emergency-protocols-api",
      "methods": ["GET"],
      "description": "Emergency response protocols for DISH patients experiencing acute symptoms",
      "parameters": {
        "symptom": {
          "type": "string",
          "required": true,
          "enum": ["pain", "swallow", "rigidez", "breathing", "fracture"],
          "description": "Emergency symptom type"
        },
        "language": {
          "type": "string",
          "required": false,
          "default": "pt-BR",
          "enum": ["pt-BR", "en", "es", "fr", "de", "it"],
          "description": "Protocol language"
        }
      },
      "authentication": "none",
      "rateLimit": "Unlimited (emergency use)",
      "example": "https://mwymgfdjdpbkxaqbpnpo.supabase.co/functions/v1/emergency-protocols-api?symptom=pain&language=en"
    },
    {
      "path": "/functions/v1/health-query-api",
      "methods": ["POST"],
      "description": "AI-powered health query system using GPT-4 with DISH medical knowledge",
      "parameters": {
        "query": {
          "type": "string",
          "required": true,
          "maxLength": 1000,
          "description": "Health-related question about DISH"
        },
        "language": {
          "type": "string",
          "required": false,
          "default": "pt-BR",
          "enum": ["pt-BR", "en", "es", "fr", "de", "it"],
          "description": "Response language"
        },
        "includeHospitals": {
          "type": "boolean",
          "required": false,
          "default": false,
          "description": "Include specialized hospitals in response"
        }
      },
      "authentication": "none",
      "rateLimit": "20 requests/hour per IP",
      "example": "POST https://mwymgfdjdpbkxaqbpnpo.supabase.co/functions/v1/health-query-api"
    }
  ],
  "capabilities": [
    "Medical Knowledge Search",
    "Emergency Protocols",
    "AI-Powered Health Queries",
    "Multilingual Support (6 languages)",
    "Structured Medical Content",
    "Patient Education Resources"
  ],
  "medical_disclaimer": "This API provides educational information only and does NOT replace professional medical consultation. DISH diagnosis requires imaging confirmation by qualified healthcare professionals.",
  "compliance": {
    "gdpr_compliant": true,
    "hipaa_notice": "No personal health information is stored or processed by these APIs",
    "content_license": "Educational use permitted with attribution to DISH.news"
  }
}
