strapi-yml-generator
Version:
Script for generation YML/XML feed for the Strapi
36 lines (35 loc) • 958 B
JSON
{
"fields": null,
"populate": [
"picture",
"gallery",
"categories"
],
"feed": "common",
"mapping": {
"id": "id",
"available": "${attributes.active}",
"url": "/catalog/${attributes.slug}",
"price": "${attributes.price}",
"categoryId": "${attributes.categories.data?.[0].id}",
"categoryName": "${attributes.categories.data?.[0].name}",
"name": "${attributes.name}",
"description": "${attributes.description}",
"manufacturerWarranty": "true",
"picture": "${attributes.picture?.data?.attributes?.url}",
"gallery": "gallery",
"length": "${attributes.length}",
"width": "${attributes.width}",
"height": "${attributes.height}"
},
"units": {
"mileage": "км",
"dimensions": "см",
"weight": "кг",
"maxLoadCapacity": "кг",
"enginePower": "кВт",
"fuelTankCapacity": "литров",
"horsePower": "л.с.",
"engineCapacity": "литров"
}
}