Skip to main content

Dil Detayı (Admin)

Dil koduna göre dil detayını getirir (Admin - silinen/pasif diller dahil).

Endpoint

GET /api/v1/admin/locales/\{code\}

Authentication

Bu endpoint authentication gerektirir.

Header: Authorization: Bearer \{token\}

Permission

  • locales.view - Dil görüntüleme

Request

Headers

HeaderDeğerZorunlu
AuthorizationBearer \{token\}Evet

Path Parameters

ParametreTipZorunluAçıklama
codestringEvetDil 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": false,
"deleted_at": null,
"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"
}

403 Forbidden

{
"message": "Forbidden"
}

Code Examples

cURL

curl -X GET https://api.example.com/api/v1/admin/locales/tr \
-H "Authorization: Bearer \{token\}"

Notes

  • Admin endpoint, authentication gerektirir
  • Silinen ve pasif diller de görüntülenebilir
  • Public endpoint'ten farklı olarak tüm durumlar görüntülenir
  • code alanına göre dil bulunur (route model binding değil, manuel sorgu)