# نمونه درخواست‌ها

## Admin login

POST /api/auth/admin-login

```json
{
  "username": "admin",
  "password": "YOUR_PASSWORD"
}
```

## Create page

POST /api/pages

Header:
Authorization: Bearer ADMIN_TOKEN

```json
{
  "title": "کتابخانه صوتی",
  "description": "مجموعه فایل‌های صوتی",
  "image_url": "https://storage.example.com/cover.jpg",
  "sort_order": 1,
  "is_active": 1
}
```

## Create category

POST /api/categories

```json
{
  "page_id": 1,
  "parent_id": null,
  "title": "تاریخ",
  "sort_order": 1,
  "is_active": 1
}
```

## Create audio

POST /api/contents

```json
{
  "category_id": 1,
  "type": "AUDIO",
  "title": "نمونه فایل صوتی",
  "description": "توضیحات",
  "cover_url": "https://storage.example.com/audio.jpg",
  "content_url": "https://storage.example.com/audio.mp3",
  "author": "نویسنده",
  "narrator": "گوینده",
  "duration": 3600,
  "file_size": 125000000,
  "sort_order": 1,
  "is_published": 1,
  "download_enabled": 1
}
```

## Create PDF

```json
{
  "category_id": 1,
  "type": "PDF",
  "title": "کتاب نمونه",
  "content_url": "https://storage.example.com/book.pdf",
  "download_enabled": 1
}
```

## Create Web page

```json
{
  "category_id": 1,
  "type": "WEB",
  "title": "مقاله نمونه",
  "content_url": "https://example.com/article",
  "download_enabled": 0
}
```

## Send chat message

POST /api/chat/messages

```json
{
  "message": "سلام، وقت بخیر"
}
```

## Get new chat messages

GET /api/chat/messages?after_id=125&limit=50
