Auth uç noktaları
| Method | Path (örnek) | Açıklama | Auth |
|---|---|---|---|
| POST | /auth/login | Giriş, token alma | Hayır |
| POST | /auth/register | Kayıt | Hayır |
| POST | /auth/forgot-password | Sıfırlama e-postası | Hayır |
| POST | /auth/reset-password | Yeni şifre (token ile) | Hayır |
| GET | /auth/profile | Oturum profili | Evet |
| DELETE | /auth/users/:id | Kullanıcı silme | Evet (genelde SUPERADMIN) |
Doğrulama (özet)
- E-posta formatı, şifre minimum uzunluk (ör. 8),
trim— ayrıntı için ana repodocs/auth-validations.md
Örnek: giriş
bash
curl -X POST "$API/auth/login" \
-H "Content-Type: application/json" \
-d '{"email":"[email protected]","password":"secret"}'