{
  "openapi": "3.1.0",
  "info": {
    "title": "Aziel Digital Library",
    "version": "2.6.2",
    "description": "THIS IS: Aziel Digital Library v2.6.2 — a self-contained immutable local digital library and intelligence runtime. The public site is the MASTER (writable for signed-in accounts; anonymous GET is read-only). THIS IS NOT: a 26-card software index; Zenodo; Horton; OpenAI. Author Aziel Eliab only.",
    "contact": {
      "name": "Aziel Eliab",
      "url": "https://www.azielcorpuslibrary.net"
    },
    "license": {
      "name": "Apache-2.0"
    }
  },
  "servers": [
    {
      "url": "https://www.azielcorpuslibrary.net"
    },
    {
      "url": "https://aziel-corpus-download-tracker.vibelock.workers.dev"
    }
  ],
  "paths": {
    "/v1/health": {
      "get": {
        "summary": "Liveness. Does not increment downloads.",
        "operationId": "health"
      }
    },
    "/v1/search": {
      "get": {
        "summary": "Search published records in both libraries.",
        "operationId": "search",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "lib",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "aziel",
                "corpus"
              ]
            }
          },
          {
            "name": "sort",
            "in": "query",
            "schema": {
              "type": "string",
              "enum": [
                "newest",
                "oldest",
                "alpha",
                "title",
                "author",
                "domain"
              ]
            }
          },
          {
            "name": "author",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "domain",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "subject",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "keyword",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    },
    "/v1/example": {
      "get": {
        "summary": "Sample search payload.",
        "operationId": "example"
      }
    },
    "/v1/skill": {
      "get": {
        "summary": "Skill markdown.",
        "operationId": "skill"
      }
    }
  }
}