{
  "openapi": "3.1.0",
  "info": {
    "title": "Femi Olayiwola Portfolio & Agent API",
    "version": "1.0.0",
    "description": "Public machine-readable API and capability discovery endpoints for Femi Olayiwola's software engineering portfolio and open-source work."
  },
  "servers": [
    {
      "url": "https://femiolayiwola.com",
      "description": "Production Edge Server"
    }
  ],
  "paths": {
    "/api/health": {
      "get": {
        "summary": "Service Health Check",
        "operationId": "getHealth",
        "responses": {
          "200": {
            "description": "Service is healthy and reachable",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string", "example": "ok" },
                    "service": { "type": "string", "example": "femiolayiwola-portfolio" }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/mcp": {
      "post": {
        "summary": "Model Context Protocol (MCP) Streamable HTTP Transport",
        "operationId": "postMcp",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "jsonrpc": { "type": "string", "example": "2.0" },
                  "method": { "type": "string" },
                  "params": { "type": "object" },
                  "id": { "type": "integer" }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "MCP JSON-RPC response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "summary": "LLM & AI Agent Context Documentation",
        "operationId": "getLlmsTxt",
        "responses": {
          "200": {
            "description": "Clean Markdown documentation for AI agents",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}

