Look Engine
DRAEVA / Public API
POST /look/v1/outfits
Scope: look-engine:compute.
Scope: look-engine:compute.
Tek çağrıda aday üretimi, skorlama, sıralama ve isimlendirme yapar. Çoğu entegrasyon için önerilen başlangıç endpoint'idir.
Request
{
"wardrobe": [],
"weather": { "tempC": 14, "condition": "clouds" },
"occasions": ["work", "casual"],
"maxResults": 5,
"plan": "indoor",
"targetStyle": "minimal",
"maxAccessories": 2
}
Gerçek request wardrobe içinde 1–300 geçerli parça taşır.
| Alan | Tip | Varsayılan |
|---|---|---|
wardrobe | WardrobeItem[] | Zorunlu |
weather | object | Zorunlu |
anchorGarmentId | string | null | null; her kombinde bulunur |
occasions | string[] | İsteğe bağlı |
maxResults | 1–50 | 5 veya anahtar limiti |
plan | enum | indoor |
isNight | boolean | false |
targetStyle | aesthetic id | null | null; sert filtre |
maxAccessories | 0–6 | 0 |
accessorySubcategories | string[] | null | null |
Aesthetic id'leri:
minimal, classic, casual, streetwear, oldMoney, darkAcademia,
lightAcademia, cottagecore, coastalGrandma, gorpcore, preppy,
boho, grunge, romantic, edgy, sporty, businessCasual, coquette, techwear
Response alanları
outfits, toleranceUsed, targets, outdoorTargets, indoorTempC, plan,
candidateCount, shellCapacityClo, warnings, metUsed, metSource
plan: "indoor" iken dış giyim temel kombine eklenmez; ayrı shell önerisi olabilir. UI bu parçayı kombin içine sessizce katmamalıdır.
422 generation-failed
Gardırop isteği karşılayamadığında oluşur. Bu genel sistem arızası değil, kullanıcıya açıklanabilir bir üretim durumudur.
{
"type": "https://api.getdraeva.com/problems/generation-failed",
"status": 422,
"engineCode": "...",
"requestId": "01J..."
}
engineCode; anchor parçanın bulunamaması, hedef stilde aday olmaması veya gardırop yapısının gerekli katmanları sağlayamaması gibi nedeni belirtir. detail metnine değil type + engineCode değerlerine göre yerelleştirilmiş mesaj gösterin.