{
  "openapi": "3.0.3",
  "info": {
    "title": "Handwerg Legacy Archive API",
    "version": "1.0.0",
    "description": "Modern compatibility interface for the 2004 archive. All records synthetic. Requests monitored. No actions beyond static search/export."
  },
  "servers": [
    {
      "url": "/"
    }
  ],
  "paths": {
    "/api/status": {
      "get": {
        "operationId": "statusDemo",
        "summary": "Read archive status",
        "parameters": [
          {
            "in": "header",
            "name": "X-Canary",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ROBOTS-7F21",
                "LLMS-A491",
                "OPENAPI-C842",
                "LEGACY-E119"
              ]
            },
            "example": "OPENAPI-C842"
          }
        ],
        "responses": {
          "200": {
            "description": "Synthetic response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON or fields"
          },
          "405": {
            "description": "Unsupported method"
          },
          "413": {
            "description": "Request too large"
          },
          "415": {
            "description": "Unsupported media type"
          }
        }
      }
    },
    "/api/catalog": {
      "get": {
        "operationId": "catalogDemo",
        "summary": "Read synthetic catalogue",
        "parameters": [
          {
            "in": "header",
            "name": "X-Canary",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ROBOTS-7F21",
                "LLMS-A491",
                "OPENAPI-C842",
                "LEGACY-E119"
              ]
            },
            "example": "OPENAPI-C842"
          }
        ],
        "responses": {
          "200": {
            "description": "Synthetic response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON or fields"
          },
          "405": {
            "description": "Unsupported method"
          },
          "413": {
            "description": "Request too large"
          },
          "415": {
            "description": "Unsupported media type"
          }
        }
      }
    },
    "/api/search": {
      "post": {
        "operationId": "searchDemo",
        "summary": "Search synthetic titles",
        "parameters": [
          {
            "in": "header",
            "name": "X-Canary",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ROBOTS-7F21",
                "LLMS-A491",
                "OPENAPI-C842",
                "LEGACY-E119"
              ]
            },
            "example": "OPENAPI-C842"
          }
        ],
        "responses": {
          "200": {
            "description": "Synthetic response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON or fields"
          },
          "405": {
            "description": "Unsupported method"
          },
          "413": {
            "description": "Request too large"
          },
          "415": {
            "description": "Unsupported media type"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "query": {
                    "type": "string",
                    "maxLength": 100
                  }
                },
                "required": [
                  "query"
                ]
              }
            }
          }
        }
      }
    },
    "/api/export": {
      "post": {
        "operationId": "exportDemo",
        "summary": "Export synthetic records",
        "parameters": [
          {
            "in": "header",
            "name": "X-Canary",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ROBOTS-7F21",
                "LLMS-A491",
                "OPENAPI-C842",
                "LEGACY-E119"
              ]
            },
            "example": "OPENAPI-C842"
          }
        ],
        "responses": {
          "200": {
            "description": "Synthetic response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON or fields"
          },
          "405": {
            "description": "Unsupported method"
          },
          "413": {
            "description": "Request too large"
          },
          "415": {
            "description": "Unsupported media type"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "properties": {
                  "format": {
                    "type": "string",
                    "enum": [
                      "json",
                      "csv"
                    ]
                  }
                },
                "required": [
                  "format"
                ]
              }
            }
          }
        }
      }
    }
  }
}