Yükleniyor…
OpenAPI 3 şeması: /api/openapi.json · ReDoc görünümü · Changelog
// Public read + isteğe bağlı ks_dev_ anahtarı
const r = await fetch('/api/public/v1/industries', {
headers: { 'X-Api-Key': process.env.KS_DEV_KEY ?? '' },
});
const j = await r.json();
// Oturumlu kullanıcı (JWT veya çerez)
const me = await fetch('/api/public/v1/me', {
headers: { Authorization: 'Bearer ' + accessToken },
});
const profile = await me.json();# Python
import os, urllib.request
req = urllib.request.Request(
os.environ.get("BASE_URL", "http://localhost:3000") + "/api/public/v1/industries",
headers={"X-Api-Key": os.environ.get("KS_DEV_KEY", "")},
)
print(urllib.request.urlopen(req).read().decode())// Go
req, _ := http.NewRequest("GET", baseURL+"/api/public/v1/industries", nil)
req.Header.Set("X-Api-Key", os.Getenv("KS_DEV_KEY"))
resp, _ := http.DefaultClient.Do(req)
defer resp.Body.Close()