# Domains API

Hesaplara bağlı domain ve subdomain yönetimi.

## Endpoint'ler

<ApiEndpointCard method="GET" path="/api/v1/accounts/{username}/domains" description="Hesabın tüm domainlerini listele" />

<ApiEndpointCard method="POST" path="/api/v1/accounts/{username}/domains" description="Addon domain ekle" />

<ApiEndpointCard method="DELETE" path="/api/v1/accounts/{username}/domains/{domain}" description="Domain sil" />

<ApiEndpointCard method="GET" path="/api/v1/accounts/{username}/subdomains" description="Subdomain listele" />

<ApiEndpointCard method="POST" path="/api/v1/accounts/{username}/subdomains" description="Subdomain ekle" />

<ApiEndpointCard method="DELETE" path="/api/v1/accounts/{username}/subdomains/{subdomain}" description="Subdomain sil" />

## Domain Ekleme

```bash
POST /api/v1/accounts/musteri/domains
Content-Type: application/json

{
    "domain": "yeni-domain.com",
    "document_root": "/home/musteri/public_html/yeni-domain",
    "php_version": "8.3",
    "autossl": true
}
```

## Subdomain Ekleme

```bash
POST /api/v1/accounts/musteri/subdomains
Content-Type: application/json

{
    "subdomain": "blog",
    "domain": "musteri.com",
    "document_root": "/home/musteri/public_html/blog"
}
```

---

*Yönlendirme (redirect) ve parked domain endpoint'leri yakında eklenecek.*
