{
  "openapi": "3.1.0",
  "info": {
    "title": "Terrible Lizards Field Manual & Telemetry API",
    "version": "1.0.0",
    "description": "Public read-only API providing decoded Steam achievements, Amber New Game Plus modifiers, Chapter 2 24-note puzzle solutions, and RJ Palmer creature dossiers for Terrible Lizards (Steam App ID 2920220).",
    "contact": {
      "name": "Terrible Lizards Field Manual Editorial",
      "url": "https://www.terrible-lizards-wiki.app/about/"
    }
  },
  "servers": [
    {
      "url": "https://www.terrible-lizards-wiki.app"
    }
  ],
  "paths": {
    "/api/lookup": {
      "get": {
        "operationId": "lookupTerribleLizards",
        "summary": "Search decoded achievements, Amber NG+ modifiers, Chapter 2 notes, and RJ Palmer creatures",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "Keyword, achievement internal key (e.g., ACH_StuffedAnimal), chapter note (e.g., 23/24, adrenaline, stereo), amber count, or dinosaur name.",
            "schema": {
              "type": "string",
              "minLength": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Matching telemetry records from the Terrible Lizards field database.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "query": { "type": "string" },
                    "count": { "type": "integer" },
                    "results": {
                      "type": "array",
                      "items": {
                        "type": "object"
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Missing or empty query parameter `q`."
          },
          "404": {
            "description": "No matching records found for query `q`."
          }
        }
      }
    },
    "/api/achievements.json": {
      "get": {
        "operationId": "listAchievements",
        "summary": "Get all 15 decoded Steam achievements and 4 Amber NG+ modifiers",
        "responses": {
          "200": {
            "description": "Complete JSON dataset of achievements and Amber modifiers."
          }
        }
      }
    },
    "/api/creatures.json": {
      "get": {
        "operationId": "listCreatures",
        "summary": "Get all 4 RJ Palmer dinosaurs, 4 Paleo Pals, and Chapter 2 key puzzles",
        "responses": {
          "200": {
            "description": "Complete JSON dataset of creatures, Paleo Pals, and puzzles."
          }
        }
      }
    },
    "/api/health.json": {
      "get": {
        "operationId": "getHealth",
        "summary": "Service health check",
        "responses": {
          "200": {
            "description": "Service health status JSON."
          }
        }
      }
    }
  }
}
