Skip to content

Instantly share code, notes, and snippets.

@PeterAronZentai
Created August 14, 2015 09:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PeterAronZentai/1e1829e3c41fb4686c4f to your computer and use it in GitHub Desktop.
Save PeterAronZentai/1e1829e3c41fb4686c4f to your computer and use it in GitHub Desktop.
{
"photos": {
"items": [
{
"id":1,
"class":"Photo",
"caption":"Photo about the 120 year old facade",
"alternative":"image of the building",
"image": "{{runtime reference to a variant}}",
"variants": {
"mobile": {
"class":"File",
"name":"mobile",
"type":"image/png",
"source":"bucket/empid/pics/src",
"metadata": {
"size":42,
"width":10,
"height":20,
"location": { }
}
},
"desktop": {
"class":"File",
"name":"desktop",
"type":"image/png",
"source":"http://aws/bucket/and/some",
"metadata": {
"width": 800,
"height":400,
"size":12345
},
"thumbnail": {
"class":"File",
"type":"image/png",
"name":"thumbnail",
"source":"aws/bucket/empid/pics/photo_thumb.jpb"
}
}
}
},
{
"id":2,
"class":"Photo",
"caption":"invisible",
"variants": {
"mobile":null,
"desktop":null
}
}
]
},
"brandAssets": {
"images": {
"header": {
"class":"CompositImage",
"name":"header",
"image": "ref_to_actual_variant",
"metadata": {
"backgroundColor": "hexColorValue"
},
"variants": {
}
},
"footer": {
"class":"CompositImage"
}
},
"colors": {
"color1": {
"type":"rgba",
"value":"10,20,30,0.5"
}
}
},
"attachments" : {
"items": [
{
"class":"Attachment",
"caption":"Yearly financial report",
"file": {
"class":"File",
"source":"aws/bucket/to/file"
}
}
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment