Dil Detayı (Public)
Dil koduna göre dil detayını getirir (Public - Authentication gerektirmez).
Endpoint
GET /api/v1/locales/\{code\}
Authentication
Bu endpoint authentication gerektirmez (Public).
Permission
Gerekmez (Public endpoint).
Request
Path Parameters
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
code | string | Evet | Dil kodu (örn: tr, en, de) |
Response
Success Response (200 OK)
{
"id": 1,
"code": "tr",
"name": "Turkish",
"native_name": "Türkçe",
"sort_order": 1,
"is_active": true,
"created_at": "2025-11-20T12:00:00.000000Z",
"updated_at": "2025-11-20T12:00:00.000000Z"
}
Error Responses
404 Not Found
{
"message": "Locale not found"
}
Code Examples
cURL
curl -X GET https://api.example.com/api/v1/locales/tr
Notes
- Public endpoint, authentication gerektirmez
- Sadece aktif diller görüntülenebilir
- Silinmiş veya pasif diller için 404 döner
- Route model binding kullanılır,
codealanına göre dil bulunur
Related Endpoints
- Dil Detayı (Admin) - Admin dil detayı (silinen/pasif diller dahil)
- Dil Listesi - Tüm dilleri listele