Meal Types API
Bu yöntem, Search API filtresinde kullanılabilen yemek ve board tipi kodlarını döndürür.
📍 Endpoint
GET {BaseURL}/common/hotel/meal-types
| Özellik | Değer |
|---|---|
| URI | {BaseURL}/common/hotel/meal-types |
| Method | GET |
| Content-Type | application/json |
🔐 Authorization
Basic Auth zorunludur. MescoMg tarafından sağlanan API kimlik bilgilerini kullanın.
Request body gerekli değildir.
📥 Örnek Response
{
"Status": {
"Code": "200",
"Description": "Successful"
},
"MealTypes": [
{
"Code": "BB",
"Name": "Bed & Breakfast",
"BoardTypeID": 2,
"BoardTypeCode": "BB",
"BoardTypeDescription": "Bed & Breakfast"
},
{
"Code": "FB",
"Name": "Full Board",
"BoardTypeID": 4,
"BoardTypeCode": "FB",
"BoardTypeDescription": "Full Board"
}
]
}
💡 Kullanım
Code değerini Search API içindeki Filters.MealType alanında kullanabilirsiniz. Public yanıtta BoardTypeID sayısal, diğer board alanları string'dir.
{
"Filters": {
"MealType": "BB"
}
}