Semih Yesilyurt
7a4fe51d09
feat(api): public API POC — API-key auth + /api/v1 decode & OEM xref
Kapalı-beta public API temeli (rapor: api-widget-analizi-2026-07-03):
- better-auth apiKey plugin (defaultPrefix sase_, enableMetadata, anahtar
başına 120 istek/dk); enableSessionForAPIKeys KAPALI — anahtar dashboard
oturumu yerine geçmez, cookie AuthGuard davranışı değişmez
- apikeys tablosu (migration 0023, plugin şemasının birebir karşılığı)
- ApiKeyGuard: Authorization Bearer / x-api-key → verifyApiKey → kullanıcı
yüklenir (status kontrolü), request.user + request.apiKey doldurulur
- /api/v1/vin/decode: mevcut slim kontrat + aday akışı; günlük başarılı-decode
kotası (Redis, TR günü, aynı VIN idempotent; limit: key metadata
dailyDecodeLimit → PUBLIC_API_DAILY_DECODE_LIMIT → 100) ve
X-Decode-Quota-* header'ları
- /api/v1/oem/:code: P çapraz-referans (kotasız)
- internal/admin/api-keys: x-internal-token ile anahtar üret/listele/kapat
(düz metin yalnız create cevabında)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-03 16:15:17 +03:00
..
2026-07-03 16:15:17 +03:00
2026-05-12 07:22:51 +00:00
2026-05-12 06:13:34 +00:00
2026-05-12 11:35:05 +00:00
2026-05-12 12:04:23 +00:00
2026-05-13 22:42:28 +00:00
2026-05-18 00:48:39 +03:00
2026-05-18 09:34:52 +03:00
2026-05-24 01:02:00 +03:00
2026-05-24 17:40:10 +03:00
2026-05-25 13:28:32 +03:00
2026-06-02 02:08:57 +03:00
2026-06-04 14:28:39 +03:00
2026-06-04 17:04:17 +03:00
2026-06-09 23:47:33 +03:00
2026-06-11 17:27:48 +03:00
2026-06-12 00:00:51 +03:00
2026-06-12 00:26:20 +03:00
2026-06-12 10:48:36 +03:00
2026-06-12 13:33:37 +03:00
2026-06-12 14:55:44 +03:00
2026-06-12 15:55:44 +03:00
2026-06-26 07:36:39 +03:00
2026-06-29 03:40:18 +03:00
2026-07-03 16:15:17 +03:00