# NOMAZRA API Endpoints — Glossary
Base URL: `https://nomazra.kelthos.com/api/nomazra/`

All endpoints require `Authorization: Bearer <access_token>`

---

## GET /glossary/
List all legal glossary terms. Supports search.

**Query Parameters:**
- `search` (optional): Search terms in English and Khmer

**Example:** `GET /glossary/?search=contract`

**Response 200:**
```json
[
  {
    "id": "uuid",
    "term": "Contract",
    "term_km": "កិច្ចសន្យា",
    "definition": "A legally binding agreement between two or more parties...",
    "definition_km": "កិច្ចព្រមព្រៀងដែលមានកាតព្វកិច្ចផ្លូវច្បាប់...",
    "category": "general",
    "related_laws": "Civil Code, Articles 336-698",
    "created_at": "..."
  }
]
```

---

## GET /glossary/{id}/
Get a single glossary term with full definition.

**Response 200:** Full glossary term object.

---

## GET /glossary/categories/
List glossary categories.

**Response 200:**
```json
[
  "general",
  "criminal",
  "civil",
  "property",
  "labor",
  "family",
  "commercial",
  "constitutional"
]
```
