{
  "openapi": "3.0.3",
  "info": {
    "title": "Chaos Men WoW Forever Guild API",
    "description": "High-performance REST API for World of Warcraft Forever Guild Roster, Raid Availability Polls, Crafting Orders, and Blizzard WoW Gateway.",
    "version": "2.0.0"
  },
  "servers": [
    {
      "url": "https://chaosmen.gg",
      "description": "Production Guild Server"
    },
    {
      "url": "http://localhost:3000",
      "description": "Local Development Server"
    }
  ],
  "paths": {
    "/api/characters": {
      "get": {
        "summary": "Get all characters on the guild roster",
        "operationId": "getCharacters",
        "responses": {
          "200": {
            "description": "List of characters with classes, specs, and tradeskills"
          }
        }
      },
      "post": {
        "summary": "Create/Sign up a new character",
        "operationId": "createCharacter",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["name", "faction", "race", "class_name", "spec_name"],
                "properties": {
                  "name": { "type": "string" },
                  "faction": { "type": "string" },
                  "race": { "type": "string" },
                  "class_name": { "type": "string" },
                  "spec_name": { "type": "string" },
                  "tradeskill1": { "type": "string" },
                  "tradeskill2": { "type": "string" },
                  "discord": { "type": "string" }
                }
              }
            }
          }
        },
        "responses": {
          "201": { "description": "Character successfully registered" }
        }
      }
    },
    "/api/wow/realm-status": {
      "get": {
        "summary": "Get live WoW realm status and population",
        "operationId": "getRealmStatus",
        "parameters": [
          {
            "name": "realm",
            "in": "query",
            "schema": { "type": "string" },
            "required": false
          }
        ],
        "responses": {
          "200": { "description": "Realm online state, population, and latency" }
        }
      }
    },
    "/api/ai/guild-summary": {
      "get": {
        "summary": "Get AI-optimized structured guild briefing and stats",
        "operationId": "getGuildSummary",
        "responses": {
          "200": { "description": "Machine-readable guild health and composition metrics" }
        }
      }
    },
    "/api/tradeskills": {
      "get": {
        "summary": "Get tradeskill recipes and guild crafter registry",
        "operationId": "getTradeskills",
        "responses": {
          "200": { "description": "Comprehensive list of craftable items and which members can craft them" }
        }
      }
    }
  }
}
