gazetteerhk / census_explorer

Explore Hong Kong's neighborhoods through visualizations of census data
http://gazetteer.hk
MIT License
42 stars 12 forks source link

Pagination of API #32

Closed hupili closed 10 years ago

hupili commented 10 years ago

more parameters in query string:

meta in response:

Pagination only matters for data.

hxu commented 10 years ago

What is the use case for pagination? In most cases, we'd want to get all the data at once, right? In theory, most of our queries should be specific enough to not return that many records.

hupili commented 10 years ago

I'm considering an interactive developer tool. One can interactively select something and get results plus rest options on the fly. Before you finalize a query, there may be many entries. It stuck my browser several times (esp. with the JSON pretty print plugin).

hxu commented 10 years ago

@hupili I whipped something quick up in b2d6f8a9e96bb43, but it doesn't show the data yet. Feel free to extend.