Widgets
Widget data and schema retrieval
Returns widget template context data including attributes, name, slug, and template.
Widget slug identifier
Widget data retrieved
Widget template context data returned by the widget endpoint. Contains widget name, slug, template path, and attributes. The attributes structure depends on the widget type schema. Used for rendering widgets in pages and templates.
Featured Productsfeatured-productswidgets/featured_products.htmlWidget not found
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"
}
}Returns the widget type schema for the specified widget slug.
Widget slug identifier
Widget schema retrieved
Defines a widget type with its JSON schema for validating and configuring widget attributes. Used to retrieve widget type information and understand what attributes a widget supports. The schema defines the structure and validation rules for widget attributes.
1Product CarouselWidget not found or has no widget type
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
}
}
}Last updated
Was this helpful?

