censusreporter / census-api

The home for the API that powers the Census Reporter project.
MIT License
166 stars 50 forks source link

encapsulate each top-level category in its own "object" in the API response #3

Closed ryanpitts closed 10 years ago

ryanpitts commented 11 years ago

So for a geography profile, an API response might look something like:

{
    "geography": {
        "sumlevel": 50,
        "name": ...
        ...
    }
    "demographics": {
        "population_by_age_gender": {
            ...
        },
        ...
    },
    "economics": {
        ...
    },
    ...
}

with the actual data dicts tucked inside each relevant category object.

iandees commented 10 years ago

The profile endpoint seems to handle this and we're moving away from it anyway.