GET /plugin-api/categories/get ✓ CanlıTek bir kategorinin detayı — örn. category.* event'indeki id'yi zenginleştirmek için. Şekil categories/list'teki öğeyle birebir aynıdır.
← API Uçları · ortak kurallar (base, auth, hata zarfı) orada.
GET {RESTOMENUM_BASE}/plugin-api/categories/get?id={categoryId}
Authorization: Bearer {serverId}.{pluginId}.{secret} // install API key (token exchange)https://sandbox.plugins.restomenum.app, Production https://plugins.restomenum.app (API Uçları).id (kategori id'si — ürünün category alanı / event data.id).Authorization: Bearer <apiKey> — token exchange'teki install API key.products:read.{
"success": true,
"data": {
"id": "a0-0c",
"title": "SOĞUK İÇECEKLER",
"image": "https://d37x2wx7jj7xm7.cloudfront.net/server/SM9M.../category/.../original.jpeg",
"color": "#3f51b5",
"rank": 2,
"active": true
}
}data alanları categories/list'tekiyle aynıdır: id, title, image (CDN|null), color (hex), rank, active, languages. İç alanlar (qrHide/webstoreHide) dönmez.
| message | HTTP | Anlam |
|---|---|---|
| plugin.categories.missingParams | 200 | id verilmedi |
| plugin.categories.notFound | 200 | Kategori yok |
| plugin.scope.denied | 200 | products:read onaylı değil |
| unauthorized | 401 | Geçersiz/eksik install key |