{
  "openapi": "3.1.0",
  "info": {
    "title": "Utkarsh Singhal site API",
    "version": "1.0.0",
    "description": "Read-only, public data about this portfolio. No keys, no sign-up.",
    "contact": {
      "email": "singhalutkarsh26@gmail.com",
      "url": "https://utkarsh-singhal.is-a.dev"
    }
  },
  "servers": [
    {
      "url": "https://utkarsh-singhal.is-a.dev"
    }
  ],
  "security": [],
  "paths": {
    "/llms.txt": {
      "get": {
        "summary": "Everything about me, in plain text",
        "operationId": "llms",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms-full.txt": {
      "get": {
        "summary": "The same, with every role and project in detail",
        "operationId": "llmsFull",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/index.md": {
      "get": {
        "summary": "The home page as Markdown",
        "operationId": "index",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/resume.md": {
      "get": {
        "summary": "The resume as Markdown",
        "operationId": "resume",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/activity.md": {
      "get": {
        "summary": "GitHub activity and coding time as Markdown",
        "operationId": "activity",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/developers.md": {
      "get": {
        "summary": "This API reference as Markdown",
        "operationId": "developers",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/profile": {
      "get": {
        "summary": "Profile, links and contact",
        "operationId": "apiV1Profile",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Profile"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/experience": {
      "get": {
        "summary": "Work history",
        "operationId": "apiV1Experience",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Company"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/projects": {
      "get": {
        "summary": "Projects: ?type=own or ?type=contribution",
        "operationId": "apiV1Projects",
        "parameters": [
          {
            "name": "type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "own",
                "contribution"
              ]
            },
            "description": "Only projects I built (own) or ones I contribute to (contribution)."
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Project"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Unknown type value"
          }
        }
      }
    },
    "/api/v1/skills": {
      "get": {
        "summary": "Skills by discipline",
        "operationId": "apiV1Skills",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/SkillGroup"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "summary": "OpenAPI 3.1 description",
        "operationId": "openapi",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/ai-catalog.json": {
      "get": {
        "summary": "AI catalog",
        "operationId": "wellKnownAiCatalog",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/api-catalog": {
      "get": {
        "summary": "API catalog, RFC 9727",
        "operationId": "wellKnownApiCatalog",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/linkset+json": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Profile": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "pronouns": {
            "type": "string"
          },
          "age": {
            "type": "integer"
          },
          "headline": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "location": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "latitude": {
                "type": "number"
              },
              "longitude": {
                "type": "number"
              },
              "timezone": {
                "type": "string"
              }
            }
          },
          "current": {
            "type": "object",
            "properties": {
              "title": {
                "type": "string"
              },
              "company": {
                "type": "string"
              },
              "website": {
                "type": "string"
              }
            }
          },
          "links": {
            "type": "object",
            "properties": {
              "site": {
                "type": "string"
              },
              "github": {
                "type": "string"
              },
              "linkedin": {
                "type": "string"
              },
              "resume": {
                "type": "string"
              },
              "email": {
                "type": "string"
              }
            }
          }
        }
      },
      "Company": {
        "type": "object",
        "properties": {
          "company": {
            "type": "string"
          },
          "website": {
            "type": "string"
          },
          "location": {
            "type": "string"
          },
          "current": {
            "type": "boolean"
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "title": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "start": {
                  "type": "string",
                  "description": "yyyy-MM"
                },
                "end": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "description": "yyyy-MM, null when current"
                },
                "description": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                },
                "stack": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      },
      "Project": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string",
            "enum": [
              "own",
              "contribution"
            ]
          },
          "url": {
            "type": "string"
          },
          "source": {
            "type": [
              "string",
              "null"
            ]
          },
          "summary": {
            "type": "string"
          },
          "stack": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SkillGroup": {
        "type": "object",
        "properties": {
          "discipline": {
            "type": "string"
          },
          "items": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}