App - Design Templates
Fetch all design template: include categories and tags
Can fetch categories and tags for design templates
Endpoint
GET /api/v1/design_templates?include=design_template_category,design_category_tags,design_category_layouts
Parameters
Name | Description |
---|---|
design_template_category_id | Limit results to certain category |
Request
Route
GET /api/v1/design_templates?include=design_template_category,design_category_tags,design_category_layouts
Headers
Accept: application/json
Content-Type: application/json
App-Id: 5691efff-fb25-4a82-91f4-726bf4449b02
App-Secret: s0apRrlJzE53WX3I29sZ0CSBPx4NxcS28XA0Y5LQ
Query Parameters
include=design_template_category,design_category_tags,design_category_layouts
Response
Simulated Response
Status
200
Headers
Content-Type: application/json; charset=utf-8
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 5a8fa344-132c-424d-bcc8-8202e9c40d92
Content-Length: 1065
Body
{
"data": [
{
"id": "16",
"type": "design_template",
"attributes": {
"id": 16,
"name": "Sample Template",
"description": "Sample description",
"video_url": null,
"purchase_url": "https://example.com/gallery/123/download",
"number_of_photos": 3,
"design_category_tag_ids": [
17
],
"design_category_tag_names": [
"Autumn"
],
"design_category_layout_ids": [
14
],
"design_category_layout_names": [
"2x6"
],
"primary_image": {
"video_variant": null
},
"additional_images": [
]
},
"relationships": {
"design_template_category": {
"data": {
"id": "31",
"type": "design_template_category"
}
},
"design_category_tags": {
"data": [
{
"id": "17",
"type": "design_category_tag"
}
]
},
"design_category_layouts": {
"data": [
{
"id": "14",
"type": "design_category_layout"
}
]
}
}
}
],
"included": [
{
"id": "31",
"type": "design_template_category",
"attributes": {
"id": 31,
"name": "Category 7",
"kind": "DesignTemplate"
}
},
{
"id": "17",
"type": "design_category_tag",
"attributes": {
"id": 17,
"name": "Autumn",
"design_template_category_id": 31,
"position": 1
}
},
{
"id": "14",
"type": "design_category_layout",
"attributes": {
"id": 14,
"name": "2x6",
"design_template_category_id": 31,
"position": 1
}
}
]
}