{
  "openapi": "3.1.0",
  "info": {
    "title": "Saran Kumar S. - Portfolio API",
    "description": "Public machine-readable API and tool discovery interface for AI agents interacting with Saran Kumar S.'s portfolio.",
    "version": "1.0.0",
    "contact": {
      "name": "Saran Kumar S.",
      "email": "sarankumar131313@gmail.com",
      "url": "https://www.swsarancodes.online"
    }
  },
  "servers": [
    {
      "url": "https://www.swsarancodes.online",
      "description": "Production server"
    }
  ],
  "paths": {
    "/api/profile.json": {
      "get": {
        "summary": "Get Engineer Profile Summary",
        "description": "Returns bio, roles, contact methods, and location for Saran Kumar S.",
        "operationId": "getProfile",
        "responses": {
          "200": {
            "description": "Profile JSON object",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            }
          }
        }
      }
    },
    "/api/projects.json": {
      "get": {
        "summary": "List All Live Projects",
        "description": "Returns all production AI applications, web agents, and developer tools built by Saran Kumar S.",
        "operationId": "getProjects",
        "responses": {
          "200": {
            "description": "Array of projects",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Project"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/skills.json": {
      "get": {
        "summary": "Get Technical Skills Matrix",
        "description": "Returns categorized technical competencies across Agentic AI, RAG, Inference, Cloud, and Full-Stack.",
        "operationId": "getSkills",
        "responses": {
          "200": {
            "description": "Skills matrix grouped by category",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Skills"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Profile": {
        "type": "object",
        "properties": {
          "name": { "type": "string" },
          "title": { "type": "string" },
          "location": { "type": "string" },
          "email": { "type": "string" },
          "website": { "type": "string" },
          "socials": {
            "type": "object",
            "properties": {
              "github": { "type": "string" },
              "linkedin": { "type": "string" },
              "twitter": { "type": "string" },
              "medium": { "type": "string" },
              "leetcode": { "type": "string" }
            }
          }
        }
      },
      "Project": {
        "type": "object",
        "properties": {
          "name": { "type": "string" },
          "description": { "type": "string" },
          "url": { "type": "string" },
          "tags": { "type": "array", "items": { "type": "string" } }
        }
      },
      "Skills": {
        "type": "object",
        "properties": {
          "agenticArchitectures": { "type": "array", "items": { "type": "string" } },
          "ragAndLLMOps": { "type": "array", "items": { "type": "string" } },
          "inferenceAndModels": { "type": "array", "items": { "type": "string" } },
          "cloudAndInfra": { "type": "array", "items": { "type": "string" } },
          "fullStack": { "type": "array", "items": { "type": "string" } }
        }
      }
    }
  }
}
