{
  "openapi": "3.1.0",
  "info": {
    "title": "Rohit Nair public evidence API",
    "version": "1.0.0",
    "description": "Anonymous read-only access to the canonical profile, source-backed evidence, and projects for Rohit Nair of rsnair.tech."
  },
  "servers": [
    {
      "url": "https://rsnair.tech"
    }
  ],
  "paths": {
    "/api/v1/profile": {
      "get": {
        "operationId": "getCandidateProfile",
        "summary": "Get the canonical candidate profile",
        "responses": {
          "200": {
            "description": "Candidate profile",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/resume": {
      "get": {
        "operationId": "getResume",
        "summary": "Get the JSON Resume-compatible professional history",
        "responses": {
          "200": {
            "description": "JSON Resume",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/evidence": {
      "get": {
        "operationId": "listEvidence",
        "summary": "List source-backed evidence claims",
        "responses": {
          "200": {
            "description": "Evidence collection",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/projects": {
      "get": {
        "operationId": "listProjects",
        "summary": "List projects",
        "responses": {
          "200": {
            "description": "Project collection",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "projects": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Project"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/projects/{id}": {
      "get": {
        "operationId": "getProject",
        "summary": "Get one project",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "codeguardians",
                "kairos",
                "obsidian-agent"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Project",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Project"
                }
              }
            }
          },
          "404": {
            "description": "Project not found"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Project": {
        "type": "object",
        "required": [
          "id",
          "name",
          "description",
          "contribution",
          "evidenceClass",
          "sourceUrl",
          "competencyIds"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "contribution": {
            "type": "string"
          },
          "evidenceClass": {
            "type": "string",
            "enum": [
              "public-artifact",
              "public-profile",
              "sanitized-professional",
              "self-description"
            ]
          },
          "sourceUrl": {
            "type": "string",
            "format": "uri"
          },
          "competencyIds": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
