{
  "openapi": "3.1.0",
  "info": {
    "title": "RedAid Nigeria Public Knowledge API",
    "version": "1.0.0",
    "description": "Public machine-readable interfaces for AI agents, crawlers, and clinical researchers querying RedAid Nigeria data.",
    "contact": {
      "name": "RedAid Nigeria Communications & Health Informatics",
      "email": "info@redaidnigeria.org",
      "url": "https://redaidnigeria.org"
    }
  },
  "servers": [
    {
      "url": "https://redaidnigeria.org",
      "description": "Production Server"
    }
  ],
  "paths": {
    "/llms.txt": {
      "get": {
        "summary": "LLM Knowledge Summary",
        "description": "Concise Markdown knowledge base formatted per the /llms.txt standard for rapid inference and grounding.",
        "responses": {
          "200": {
            "description": "Markdown document",
            "content": {
              "text/plain": {}
            }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "summary": "Complete Clinical & Field Knowledge Corpus",
        "description": "Exhaustive knowledge corpus including all 35 field stories, clinical interventions, epidemiology citations, and state operational footprint.",
        "responses": {
          "200": {
            "description": "Full Markdown knowledge document",
            "content": {
              "text/plain": {}
            }
          }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "summary": "Global XML Sitemap",
        "description": "Comprehensive XML sitemap covering all 59 canonical endpoints and 35 primary Google Image extensions.",
        "responses": {
          "200": {
            "description": "XML sitemap",
            "content": {
              "application/xml": {}
            }
          }
        }
      }
    },
    "/sitemap-articles.xml": {
      "get": {
        "summary": "Articles and Field Dispatches XML Sitemap",
        "description": "Specialized XML feed of all 35 medical field dispatches, publication timestamps, and images.",
        "responses": {
          "200": {
            "description": "Articles XML sitemap",
            "content": {
              "application/xml": {}
            }
          }
        }
      }
    },
    "/blog-post.html": {
      "get": {
        "summary": "Field Story by Slug",
        "description": "Access specific field dispatches. Supports content negotiation (`Accept: text/markdown`) to return structured Markdown directly to AI models.",
        "parameters": [
          {
            "name": "slug",
            "in": "query",
            "required": true,
            "description": "Slug of the field dispatch",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "HTML or Markdown document",
            "content": {
              "text/html": {},
              "text/markdown": {}
            }
          }
        }
      }
    }
  }
}
