class CustomApiDocs extends HTMLElement { connectedCallback() { this.attachShadow({ mode: 'open' }); this.shadowRoot.innerHTML = `

Hanzi Hunter API Documentation

POST /api/analyze

Analyze a Chinese word and get HSK level, usage, and meaning information.

Request:
{ "word": "冒险" }
Response:
{
  "word": "冒险",
  "level": "HSK 4",
  "style": "Neutral",
  "usage": "Common",
  "meaning": "adventure, take risks",
  "pinyin": "mào xiǎn"
}
GET /api/hsk/:level

Get all words from a specific HSK level.

Example:
GET /api/hsk/1
Response Format:
{
  "level": 1,
  "words": ["你好", "谢谢", "学习"]
}
POST /api/batch-analyze

Analyze multiple Chinese words at once.

Request:
{ "words": ["冒险", "学习", "你好"] }
`; } } customElements.define('custom-api-docs', CustomApiDocs);