Last active
February 16, 2016 23:39
-
-
Save dbouwman/83f30211d9798e2f7b45 to your computer and use it in GitHub Desktop.
Example payload to /api/v2/sites/:id
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"attributes": { | |
"draft": "{\"layout\":{\"cards\":[{\"x\":0,\"y\":0,\"width\":12,\"height\":5,\"component\":{\"name\":\"jumbotron-card\",\"minWidth\":12,\"editor\":\"jumbotron-card-editor\",\"settings\":{\"header\":\"Agency Layout\",\"subheader\":\"This is our Open Data website\",\"imageUrl\":null,\"showLocation\":false,\"showSearch\":true}}},{\"x\":0,\"y\":5,\"width\":2,\"height\":2,\"component\":{\"name\":\"category-card\",\"editor\":\"category-card-editor\",\"settings\":{\"keyword\":\"boundaries\",\"category\":\"Business\"}}},{\"x\":2,\"y\":5,\"width\":2,\"height\":2,\"component\":{\"name\":\"category-card\",\"editor\":\"category-card-editor\",\"settings\":{\"keyword\":\"boundaries\",\"category\":\"Boundaries\"}}},{\"x\":4,\"y\":5,\"width\":2,\"height\":2,\"component\":{\"name\":\"category-card\",\"editor\":\"category-card-editor\",\"settings\":{\"keyword\":\"boundaries\",\"category\":\"Infrastructure\"}}},{\"x\":6,\"y\":5,\"width\":2,\"height\":2,\"component\":{\"name\":\"category-card\",\"editor\":\"category-card-editor\",\"settings\":{\"keyword\":\"boundaries\",\"category\":\"Planning\"}}},{\"x\":8,\"y\":5,\"width\":2,\"height\":2,\"component\":{\"name\":\"category-card\",\"editor\":\"category-card-editor\",\"settings\":{\"keyword\":\"boundaries\",\"category\":\"Safety\"}}},{\"x\":10,\"y\":5,\"width\":2,\"height\":2,\"component\":{\"name\":\"category-card\",\"editor\":\"category-card-editor\",\"settings\":{\"keyword\":\"boundaries\",\"category\":\"Schools\"}}},{\"x\":0,\"y\":7,\"width\":4,\"height\":4,\"component\":{\"name\":\"markdown-card\",\"settings\":{\"markdown\":\"# Hello World \\n Lets not be stupid about this. But we need images and other things of goodness \\n \\n <hr>\\n### And Lists \\n - of good things\\n- and bad\"}},\"_dirty\":true},{\"x\":4,\"y\":7,\"width\":8,\"height\":4,\"component\":{\"editor\":\"map-card-editor\",\"name\":\"map-card\",\"settings\":{\"title\":\"Default Map\",\"webmap\":\"6e03e8c26aad4b9c92a87c1063ddb0e3\"}}}],\"header\":{\"title\":\"My Municipality\",\"logoUrl\":\"http://omgnikki.com/wp-content/uploads/2015/03/sm-icon_pin.png\",\"fullWidth\":false,\"iframeHeight\":\"120px\",\"links\":[]},\"footer\":{\"copyrightName\":\"My Municipality\",\"height\":\"50px\",\"link1\":{\"url\":\"\",\"text\":\"\"},\"link2\":{\"url\":\"\",\"text\":\"\"},\"link3\":{\"url\":\"\",\"text\":\"\"}}},\"style\":{\"$brand-primary-color\":\"#428bca\",\"$navbar-height\":\"80px\",\"$navbar-default-bg\":\"#CCCCCC\",\"$navbar-default-link-color\":\"#CCCCCC\",\"$navbar-default-link-hover-color\":\"#000000\",\"$footer-bg\":\"#f8f8f8\",\"$footer-height\":\"60px\"},\"cssUrl\":\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css\"}", | |
"layout": "null", | |
"style": "null", | |
"title": "00000 BETA SITE", | |
"uiVersion": "2.0", | |
"updatedAt": "2016-02-16T23:36:30.998Z", | |
"updatedBy": null | |
}, | |
"id": "388", | |
"type": "site" | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": { | |
"attributes": { | |
"draft": "{\"layout\":{\"cards\":[{\"x\":0,\"y\":0,\"width\":12,\"height\":5,\"component\":{\"name\":\"jumbotron-card\",\"minWidth\":12,\"editor\":\"jumbotron-card-editor\",\"settings\":{\"header\":\"Hello World!\",\"subheader\":\"This is our Open Data website\",\"imageUrl\":\"http://cdn.playbuzz.com/cdn/32046b2f-38d4-4a82-8634-e1a72dd8f6ac/3bd0af20-55a4-48d7-84ea-7ffb29680186.jpg\",\"showLocation\":true}}},{\"x\":0,\"y\":9,\"width\":6,\"height\":10,\"component\":{\"name\":\"markdown-card\",\"settings\":{\"markdown\":\"# Hello World \\n Lets not be stupid about this. But we need images and other things of goodness \\n \\n <img src=\\\"http://assets.pokemon.com/assets/cms2/img/pokedex/full/025.png\\\"/><hr>\\n### And Lists \\n - of good things\\n- and bad\"}}},{\"x\":4,\"y\":5,\"width\":6,\"height\":4,\"component\":{\"name\":\"placeholder-card\"}}],\"header\":{\"title\":\"My Super Site\",\"logoUrl\":\"http://omgnikki.com/wp-content/uploads/2015/03/sm-icon_pin.png\",\"fullWidth\":false,\"iframeHeight\":\"120px\",\"links\":[]},\"footer\":{\"copyrightName\":\"Esri DC\",\"height\":\"50px\",\"links\":[{\"text\":\"link one\",\"url\":\"http://cnn.com\"},{\"text\":\"link two\",\"url\":\"http://esri.com\"},{\"text\":\"link three\",\"url\":\"http://davebouwman.com\"}]}},\"style\":{\"$brand-primary-color\":\"#428bca\",\"$navbar-height\":\"80px\",\"$navbar-default-bg\":\"#CCCCCC\",\"$navbar-default-link-color\":\"#CCCCCC\",\"$navbar-default-link-hover-color\":\"#000000\",\"$footer-bg\":\"#f8f8f8\",\"$footer-height\":\"60px\"},\"cssUrl\":\"http://arcgis.github.io/opendata-admin-design/styles/theme-generic.css\"}", | |
"extent": { | |
"spatialReference": { | |
"wkid": 4326 | |
}, | |
"xmax": -77.014, | |
"xmin": -77.127, | |
"ymax": 38.862, | |
"ymin": 38.779 | |
}, | |
"internalUrl": "wondercats.opendata.arcgis.com", | |
"layout": "{\"cards\":[{\"x\":0,\"y\":0,\"width\":12,\"height\":5,\"component\":{\"name\":\"jumbotron-card\",\"minWidth\":12,\"editor\":\"jumbotron-card-editor\",\"settings\":{\"header\":\"Hello World!\",\"subheader\":\"This is our Open Data website\",\"imageUrl\":\"http://cdn.playbuzz.com/cdn/32046b2f-38d4-4a82-8634-e1a72dd8f6ac/3bd0af20-55a4-48d7-84ea-7ffb29680186.jpg\",\"showLocation\":true}}},{\"x\":0,\"y\":5,\"width\":6,\"height\":10,\"component\":{\"name\":\"markdown-card\",\"settings\":{\"markdown\":\"# Hello World \\n Lets not be stupid about this. But we need images and other things of goodness \\n \\n <img src=\\\"http://assets.pokemon.com/assets/cms2/img/pokedex/full/025.png\\\"/><hr>\\n### And Lists \\n - of good things\\n- and bad\"}}},{\"x\":6,\"y\":5,\"width\":6,\"height\":4,\"component\":{\"name\":\"placeholder-card\"}}],\"header\":{\"title\":\"My Super Site\",\"logoUrl\":\"http://omgnikki.com/wp-content/uploads/2015/03/sm-icon_pin.png\",\"fullWidth\":false,\"iframeHeight\":\"120px\",\"links\":[]},\"footer\":{\"copyrightName\":\"Esri DC\",\"height\":\"50px\",\"links\":[{\"text\":\"link one\",\"url\":\"http://cnn.com\"},{\"text\":\"link two\",\"url\":\"http://esri.com\"},{\"text\":\"link three\",\"url\":\"http://davebouwman.com\"}]}}", | |
"style": { | |
"$brand-primary-color": "#428bca", | |
"$footer-bg": "#f8f8f8", | |
"$footer-height": "60px", | |
"$navbar-default-bg": "#CCCCCC", | |
"$navbar-default-link-color": "#CCCCCC", | |
"$navbar-default-link-hover-color": "#000000", | |
"$navbar-height": "80px" | |
}, | |
"subdomain": "wondercats", | |
"title": "My Super Site", | |
"uiVersion": 2, | |
"updatedAt": "2016-02-05T17:41:58.102Z", | |
"updatedBy": "dbouwman" | |
}, | |
"id": "123", | |
"type": "site" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment