Theme
A shop’s design theme, including templates and static assets.
HTTP GET
GET https://api.bootic.net/v1/shops/{id}/theme.json
Response
Status: 200 OK
Content-Type: application/json; charset=utf-8
Connection: keep-alive
ETag: "0728e2965bd03e20a7f1c33add2f8775"
Last-Modified: Fri, 20 Jun 2014 22:34:14 GMT
Cache-Control: must-revalidate, private, max-age=0
Date: Wed, 31 Jul 2013 21:11:52 GMT
X-OAuth-Scopes: admin
{
"_class": [
"theme"
],
"_links": {
"curies": [
{
"name": "btc",
"href": "https://api.bootic.net/rels/{rel}",
"templated": true
}
],
"btc:update_theme": {
"href": "https://api.bootic.net/v1/themes/6292",
"method": "put",
"docs": "https://api.bootic.net/rels/update_theme",
"name": "update_theme"
},
"btc:create_template": {
"href": "https://api.bootic.net/v1/themes/6292/templates",
"method": "post",
"docs": "https://api.bootic.net/rels/create_template",
"name": "create_template"
},
"btc:create_theme_asset": {
"href": "https://api.bootic.net/v1/themes/6292/assets",
"method": "post",
"docs": "https://api.bootic.net/rels/create_theme_asset",
"name": "create_theme_asset"
},
"self": {
"href": "https://api.bootic.net/v1/shops/453/theme",
"name": "self"
},
"btc:theme_preview": {
"href": "https://simplelist.bootic.net",
"type": "text/html",
"docs": "https://api.bootic.net/rels/theme_preview",
"name": "theme_preview"
},
"btc:dev_theme": {
"href": "https://api.bootic.net/v1/themes/6294",
"title": "Development theme for this shop",
"docs": "https://api.bootic.net/rels/dev_theme",
"name": "dev_theme"
},
"btc:create_dev_theme": {
"href": "https://api.bootic.net/v1/shops/453/themes",
"title": "Create a new development theme for this shop",
"method": "post",
"docs": "https://api.bootic.net/rels/create_dev_theme",
"name": "create_dev_theme"
}
},
"production": true,
"id": "6292",
"title": "Simple List",
"settings": {
},
"updated_on": "2018-08-26T14:13:37.000Z",
"_embedded": {
"templates": [
{
"_class": [
"themeTemplate"
],
"_links": {
"self": {
"href": "https://api.bootic.net/v1/themes/6292/templates/111121"
},
"btc:update_template": {
"href": "https://api.bootic.net/v1/themes/6292/templates/111121",
"method": "put",
"title": "Update a theme template"
}
},
"id": "111121",
"updated_on": "2017-12-18T12:11:07.000Z",
"file_name": "404.html",
"name": "404",
"content_type": "html",
"body": "<div id=\"content\">\n Página no encontrada\n Intenta con el menú de navegación de arriba\n\n {% for product in all_products.tagged_with.featured limit: 4 %}\n \n <a href=\"{{ product.url }}\">{{ product.model }} | \n <span class=\"price\">{{ product.price.format }}\n \n {% endfor %}\n\n"
},
{
"_class": [
"themeTemplate"
],
"_links": {
"self": {
"href": "https://api.bootic.net/v1/themes/6292/templates/111122"
},
"btc:update_template": {
"href": "https://api.bootic.net/v1/themes/6292/templates/111122",
"method": "put",
"title": "Update a theme template"
},
"btc:delete_template": {
"href": "https://api.bootic.net/v1/themes/6292/templates/111122",
"method": "delete",
"title": "Delete a theme template"
}
},
"id": "111122",
"updated_on": "2017-12-18T12:11:07.000Z",
"file_name": "app.js",
"name": "app",
"content_type": "js",
"body": "alert('hello')"
}
],
"assets": [
{
"_class": [
"themeAsset"
],
"_links": {
"file": {
"href": "https://static.bootic.net/themes/6292/slider-arrows.png?1519214975",
"type": "image/png"
},
"btc:delete_theme_asset": {
"href": "https://api.bootic.net/v1/themes/6292/assets/129805",
"method": "delete"
}
},
"id": "129805",
"updated_on": "2018-02-21T12:09:35.000Z",
"digest": "firufhriufhr3754yhfh47474",
"file_size": 6863,
"file_name": "slider-arrows.png",
"content_type": "image/png"
}
]
}
}
Links
- self
- A link back to the current theme resource
- btc:update_theme
- Update theme settings. See update_theme
- btc:create_template
- Create a new template for this theme. See create_template
- btc:create_theme_asset
- Upload a file (image) for this theme. See create_theme_asset
- btc:dev_theme
- Development theme resource. Also a theme resource.
- btc:theme_preview
- Link to preview development theme on website.
Embedded
- templates
- A list of template entities.
- assets
- A list of theme asset entities.