Skip to content

Instantly share code, notes, and snippets.

@joetm
Last active May 14, 2016 14:10
Show Gist options
  • Select an option

  • Save joetm/88436d7ef20db60679634dbfd73bd423 to your computer and use it in GitHub Desktop.

Select an option

Save joetm/88436d7ef20db60679634dbfd73bd423 to your computer and use it in GitHub Desktop.
{
"apiVersion": "1.0.0",
"swaggerVersion": "1.2",
"resourcePath": "/census",
"produces": [
"application/json"
],
"consumes": [
"application/json"
],
"protocols": [
"http"
],
"apis": [
{
"path": "/census/distance",
"operations": [
{
"method": "GET",
"summary": "Get mean distance to work for the employed population in an area.",
"position": 0,
"notes": "",
"deprecated": false,
"nickname": "getDistanceToWork",
"parameters": [
{
"name": "area",
"description": "Geographical area. Specify either with a postcode, or with lat/long separated by a comma, i.e. 51.464168,-0.170615.",
"required": true,
"paramType": "query",
"type": "string"
}
],
"type": "void"
}
]
},
{
"path": "/census/jobs_breakdown",
"operations": [
{
"method": "GET",
"summary": "Get occupation breakdown by SOC 3-digit group in an area.",
"position": 0,
"notes": "",
"deprecated": false,
"nickname": "getJobsBreakdown",
"parameters": [
{
"name": "area",
"description": "Geographical area. Specify either with a postcode, or with lat/long separated by a comma, i.e. 51.464168,-0.170615.",
"required": true,
"paramType": "query",
"type": "string"
}
],
"type": "void"
}
]
},
{
"path": "/census/resident_occupations",
"operations": [
{
"method": "GET",
"summary": "Get residents' occupations by SOC 2-digit group in an area.",
"position": 0,
"notes": "",
"deprecated": false,
"nickname": "getResidentOccupations",
"parameters": [
{
"name": "area",
"description": "Geographical area. Specify either with a postcode, or with lat/long separated by a comma, i.e. 51.464168,-0.170615.",
"required": true,
"paramType": "query",
"type": "string"
}
],
"type": "void"
}
]
}
],
"basePath": "http://api.lmiforall.org.uk/api/v1"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment