Widgets
Widget data and schema retrieval
Last updated
Was this helpful?
Widget data and schema retrieval
Last updated
Was this helpful?
Was this helpful?
GET /widgets/{slug}/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
{
"name": "Featured Products",
"slug": "featured-products",
"template": "widgets/featured_products.html",
"attributes": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}GET /widgets/{slug}/schema/ HTTP/1.1
Host: sandbox.akinon.com
Accept: */*
{
"pk": 1,
"name": "Product Carousel",
"schema": {
"title": {
"type": "string",
"required": true
},
"limit": {
"type": "integer",
"default": 10
}
}
}