Last active
August 29, 2015 14:07
-
-
Save jacqui/7b125e3b7c4b24e2a23f to your computer and use it in GitHub Desktop.
Greenwich Restaurant Ratings from Food Hygiene Rating API (http://api.ratings.food.gov.uk/help)
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
{ | |
"Blocks": [ | |
{ | |
"Id": "1", | |
"Type": "bang", | |
"Rule": null, | |
"Position": { | |
"X": 356, | |
"Y": 83 | |
} | |
}, | |
{ | |
"Id": "2", | |
"Type": "webRequest", | |
"Rule": { | |
"BodyPath": ".", | |
"Headers": { | |
"accept": "application/json", | |
"content-type": "application/json", | |
"x-api-version": "2" | |
}, | |
"Method": "GET", | |
"Url": "http://api.ratings.food.gov.uk/Establishments?localAuthorityId=98", | |
"UrlPath": "" | |
}, | |
"Position": { | |
"X": 357, | |
"Y": 190 | |
} | |
}, | |
{ | |
"Id": "3", | |
"Type": "unpack", | |
"Rule": { | |
"ArrayPath": ".body.establishments", | |
"LabelPath": "" | |
}, | |
"Position": { | |
"X": 464, | |
"Y": 304 | |
} | |
}, | |
{ | |
"Id": "6", | |
"Type": "tolog", | |
"Rule": null, | |
"Position": { | |
"X": 335, | |
"Y": 406 | |
} | |
}, | |
{ | |
"Id": "8", | |
"Type": "cache", | |
"Rule": { | |
"KeyPath": ".BusinessName", | |
"TimeToLive": "24h", | |
"ValuePath": ".RatingValue" | |
}, | |
"Position": { | |
"X": 414, | |
"Y": 463.5 | |
} | |
}, | |
{ | |
"Id": "10", | |
"Type": "histogram", | |
"Rule": { | |
"Path": ".BusinessType", | |
"Window": "24h0m0s" | |
}, | |
"Position": { | |
"X": 608, | |
"Y": 368.5 | |
} | |
}, | |
{ | |
"Id": "11", | |
"Type": "histogram", | |
"Rule": { | |
"Path": ".scores.ConfidenceInManagement", | |
"Window": "24h0m0s" | |
}, | |
"Position": { | |
"X": 761, | |
"Y": 368 | |
} | |
} | |
], | |
"Connections": [ | |
{ | |
"Id": "4", | |
"FromId": "2", | |
"ToId": "3", | |
"ToRoute": "in" | |
}, | |
{ | |
"Id": "5", | |
"FromId": "1", | |
"ToId": "2", | |
"ToRoute": "in" | |
}, | |
{ | |
"Id": "7", | |
"FromId": "3", | |
"ToId": "6", | |
"ToRoute": "in" | |
}, | |
{ | |
"Id": "9", | |
"FromId": "3", | |
"ToId": "8", | |
"ToRoute": "in" | |
}, | |
{ | |
"Id": "12", | |
"FromId": "3", | |
"ToId": "10", | |
"ToRoute": "in" | |
}, | |
{ | |
"Id": "13", | |
"FromId": "3", | |
"ToId": "11", | |
"ToRoute": "in" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment