{
 "openapi": "3.1.0",
 "info": {
  "title": "Clawd 400 static API",
  "version": "1.0.0",
  "description": "Read-only static files. nnn = GIF number 001-400. No auth, CORS as served by GitHub Pages."
 },
 "servers": [
  {
   "url": "https://khiqwq.github.io/clawd-400"
  }
 ],
 "paths": {
  "/api/index.json": {
   "get": {
    "summary": "Catalog of all 400 GIFs",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/api/themes.json": {
   "get": {
    "summary": "The 8 themes with counts",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {}
      }
     }
    }
   }
  },
  "/api/gifs/{nnn}.json": {
   "get": {
    "summary": "One GIF: titles, frames, durations, palette, bbox, file info, source",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/json": {}
      }
     }
    },
    "parameters": [
     {
      "name": "nnn",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/api/frames/{nnn}.txt": {
   "get": {
    "summary": "Every frame as a 40x40 character grid with a palette legend",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "text/plain": {}
      }
     }
    },
    "parameters": [
     {
      "name": "nnn",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/sheets/{nnn}.png": {
   "get": {
    "summary": "All frames side by side at 40x40",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "image/png": {}
      }
     }
    },
    "parameters": [
     {
      "name": "nnn",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/gifs/{file}": {
   "get": {
    "summary": "The GIF (480x480, transparent)",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "image/gif": {}
      }
     }
    },
    "parameters": [
     {
      "name": "file",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     }
    ]
   }
  },
  "/downloads/clawd-400.zip": {
   "get": {
    "summary": "All 400 GIFs with manifest and licence",
    "responses": {
     "200": {
      "description": "OK",
      "content": {
       "application/zip": {}
      }
     }
    }
   }
  }
 }
}