{
  "openapi": "3.1.0",
  "info": {
    "title": "dtheo.dev API",
    "version": "1.0.0",
    "summary": "Read Dimitris Theodoropoulos’s portfolio as Markdown.",
    "description": "A public, read-only API for the portfolio of Dimitris Theodoropoulos, a product engineer. Every page is also a Markdown document; send Accept: text/markdown to a page URL, or call the paths below. No key or account is needed. Errors are RFC 9457 problem details when the request accepts application/json or application/problem+json.",
    "contact": {
      "name": "Dimitris Theodoropoulos",
      "url": "https://dtheo.dev/contact"
    }
  },
  "servers": [
    {
      "url": "https://dtheo.dev"
    }
  ],
  "security": [],
  "externalDocs": {
    "description": "How to read this site from code",
    "url": "https://dtheo.dev/developers"
  },
  "tags": [
    {
      "name": "Documents",
      "description": "Pages of the portfolio as Markdown or plain text."
    }
  ],
  "paths": {
    "/llms.txt": {
      "get": {
        "operationId": "getSiteIndex",
        "summary": "Get the site index for language models",
        "description": "Returns llms.txt: a short profile and a described link to every public document, case study and developer tool.",
        "tags": [
          "Documents"
        ],
        "responses": {
          "200": {
            "description": "The index in the llms.txt format.",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/index.md": {
      "get": {
        "operationId": "getHome",
        "summary": "Get the homepage",
        "description": "Returns the homepage: profile, results, experience summary, selected work and contact options.",
        "tags": [
          "Documents"
        ],
        "responses": {
          "200": {
            "description": "The document as UTF-8 Markdown with YAML frontmatter.",
            "headers": {
              "Content-Language": {
                "description": "Always en-US.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "text/markdown": {
                "schema": {
                  "$ref": "#/components/schemas/MarkdownDocument"
                }
              }
            }
          }
        }
      }
    },
    "/{page}/index.md": {
      "get": {
        "operationId": "getPage",
        "summary": "Get a profile page",
        "description": "Returns the CV, the About, Contact or Privacy page, or this API’s documentation.",
        "tags": [
          "Documents"
        ],
        "parameters": [
          {
            "name": "page",
            "in": "path",
            "required": true,
            "description": "The page to return.",
            "schema": {
              "type": "string",
              "enum": [
                "cv",
                "about",
                "contact",
                "privacy",
                "developers"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The document as UTF-8 Markdown with YAML frontmatter.",
            "headers": {
              "Content-Language": {
                "description": "Always en-US.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "text/markdown": {
                "schema": {
                  "$ref": "#/components/schemas/MarkdownDocument"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/work/{project}/index.md": {
      "get": {
        "operationId": "getCaseStudy",
        "summary": "Get a case study",
        "description": "Returns one project case study: role, period, result, screenshots, contribution, evidence links and, where published, the system architecture.",
        "tags": [
          "Documents"
        ],
        "parameters": [
          {
            "name": "project",
            "in": "path",
            "required": true,
            "description": "The project to return.",
            "schema": {
              "type": "string",
              "enum": [
                "qasper-ai",
                "cordia-health",
                "jobnroll",
                "weatherxm-explorer"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The document as UTF-8 Markdown with YAML frontmatter.",
            "headers": {
              "Content-Language": {
                "description": "Always en-US.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "text/markdown": {
                "schema": {
                  "$ref": "#/components/schemas/MarkdownDocument"
                }
              }
            }
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          }
        }
      }
    },
    "/cv.pdf": {
      "get": {
        "operationId": "getCvPdf",
        "summary": "Download the CV as PDF",
        "description": "Returns the printable CV, generated from the same content as /cv/index.md.",
        "tags": [
          "Documents"
        ],
        "responses": {
          "200": {
            "description": "A PDF file.",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "contentMediaType": "application/pdf"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "MarkdownDocument": {
        "type": "string",
        "contentMediaType": "text/markdown",
        "description": "Markdown that starts with YAML frontmatter (title, description, canonical, author, language, updated)."
      },
      "Problem": {
        "type": "object",
        "description": "RFC 9457 problem details. `code` and `hint` are extension members.",
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "instance",
          "code",
          "hint"
        ],
        "properties": {
          "type": {
            "type": "string",
            "format": "uri-reference",
            "description": "Always about:blank: the title is the HTTP status phrase."
          },
          "title": {
            "type": "string",
            "description": "The HTTP status phrase."
          },
          "status": {
            "type": "integer",
            "description": "The HTTP status code of the response."
          },
          "detail": {
            "type": "string",
            "description": "What went wrong for this request."
          },
          "instance": {
            "type": "string",
            "format": "uri-reference",
            "description": "The requested path."
          },
          "code": {
            "type": "string",
            "enum": [
              "not_found",
              "not_acceptable"
            ],
            "description": "A stable identifier for the problem."
          },
          "hint": {
            "type": "string",
            "description": "What to request instead."
          }
        }
      }
    },
    "responses": {
      "NotFound": {
        "description": "Nothing is published at this path.",
        "content": {
          "application/problem+json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          },
          "text/markdown": {
            "schema": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
