{
  "service": "HuberGroup Excel Export Service",
  "status": "online",
  "timestamp": "2026-09-11T16:28:52.330Z",
  "availableReports": [
    {
      "id": "invoices",
      "title": "Fatura ve Onay Listesi",
      "description": "Tedarikçi faturaları, onaylayanlar ve onay tarihleri özeti",
      "excelUrl": "/api/export/excel?report=invoices",
      "previewUrl": "/api/export/preview?report=invoices"
    }
  ],
  "endpoints": {
    "directDownload": "/api/export/invoices.xlsx",
    "userDownload": "/api/export/invoices.xlsx?user=kullanici@hubergroup.com",
    "adminDownload": "/api/export/invoices.xlsx?role=admin",
    "parametrizedDownload": "/api/export/excel?report=invoices&user=kullanici@hubergroup.com&startDate=YYYY-MM-DD&limit=200",
    "previewJson": "/api/export/preview?report=invoices&user=kullanici@hubergroup.com&limit=5",
    "reportsCatalog": "/api/export/reports"
  },
  "authorizationInfo": {
    "adminMode": "role=admin parametresi veya header x-user-role: admin gönderildiğinde TÜM faturalar dökülür.",
    "userMode": "user=email@... gönderildiğinde ve admin değilse YALNIZCA Invoice_Owner alanı bu e-posta olan faturalar dökülür.",
    "scopeOptions": "scope=owner (varsayılan: sadece fatura sahibi) veya scope=involved (fatura sahibi VEYA onaycısı olduğu faturalar)"
  }
}