Last active
August 29, 2015 14:06
-
-
Save alexmuller/858af7b977f026d2fb9d to your computer and use it in GitHub Desktop.
Creating a dashboard using cURL
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
curl -X POST https://stagecraft.preview.performance.service.gov.uk/dashboard --header "Authorization: Bearer $NAYEEMA_TOKEN" --header "Content-type: application/json" --data @dashboard.json | |
curl -X POST https://stagecraft.preview.performance.service.gov.uk/module-type --header "Authorization: Bearer $NAYEEMA_TOKEN" --header "Content-type: application/json" --data @module_type.json | |
curl -X POST https://stagecraft.preview.performance.service.gov.uk/dashboard/UPDATE_THIS/module --header "Authorization: Bearer $NAYEEMA_TOKEN" --header "Content-type: application/json" --data @module.json |
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
{ | |
"slug": "test/all-the-cakes", | |
"title": "All the cakes", | |
"description": "Baking all the cakes", | |
"published": false, | |
"business_models": "Fees and charges" | |
} |
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
{ | |
"type_id": "UPDATE_THIS", | |
"slug": "realtime", | |
"title": "Realtime", | |
"description": "Performance Platform cake consumption", | |
"info": ["Data source: biscuit tin"], | |
"options": {}, | |
"data_set_id": "9" | |
} |
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
{ | |
"name": "realtime", | |
"schema": {} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment