Skip to content

Instantly share code, notes, and snippets.

@sgithens
Created April 4, 2014 19:16
Show Gist options
  • Save sgithens/9981351 to your computer and use it in GitHub Desktop.
Save sgithens/9981351 to your computer and use it in GitHub Desktop.
Values Endpoint
{
"_links": {
"base": {
"href": "http://localhost:8000/api/fields/131/values/"
},
"parent": {
"href": "http://localhost:8000/api/fields/131/"
},
"self": {
"href": "http://localhost:8000/api/fields/131/values/?limit=10&page=1"
}
},
"count": 2,
"limit": 10,
"num_pages": 1,
"page_num": 1,
"values": [
{
"label": "Blood",
"value": 1
},
{
"label": "Tissue",
"value": 2
}
]
}
Dist Endpoint
{
"clustered": false,
"data": [
{
"count": 3,
"values": [
1
]
},
{
"count": 2,
"values": [
2
]
}
],
"outliers": [ ],
"size": 2
}
What the Dist Endpoint should maybe look like:
{
"clustered": false,
"data": [
{
"count": 3,
"values": [
{
"label": "Blood",
"value": 1
}
]
},
{
"count": 2,
"values": [
{
"label": "Tissue",
"value": 2
}
]
}
],
"outliers": [ ],
"size": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment