gdoteof/election — Issue #3: Provide Links to Ballot Item Results
Author: bradley-holt
Created: 2012-01-23 21:12:50+00:00
State: open
Labels: JSON

### Description

Please provide a link to individual ballot item results when these results are aggregated.

### Steps to Reproduce

curl 'https://example.org/town-meeting-season-2011/town-meeting-day-2011/city-of-burlington' \
-H 'Accept: application/json'`

### Actual Results

```json
{
"title":"City of Burlington",
…
"ballot_item_results":{
…
"113838":{
"text":"Approval of Increase in Maximum Tax Rate for…",
"results":{
"Yes":1849,
"No":4047
}
},
…
}
…
}
```

### Expected Results

```json
{
"title":"City of Burlington",
…
"ballot_item_results":{
…
"113838":{
"text":"Approval of Increase in Maximum Tax Rate for…",
"link":"/town-meeting-season-2011/town-meeting-day-2011/city-of-burlington/tax-rate",
"results":{
"Yes":1849,
"No":4047
}
},
…
}
…
}
```

### Additional Comments

Is the ID number (e.g. `113838`) necessary? I can't think of any scenario under which I would need that data. Is this ever used for anything user-facing (e.g. part of a URL)? If not, could `ballot_item_results` just be an array?