centraldedados / datacentral

Tools for generating portable data portals
58 stars 9 forks source link

Generate static JSON "API"? #6

Closed metaodi closed 10 years ago

metaodi commented 10 years ago

I just read the blog post about Data Central and read the following sentence:

There is no API since it’s all just HTML. This might be the most evident shortcoming of a static approach.

Wouldn't it be relatively easy to expose a static JSON with information about all the available datasets as a kind of "static API"? This would probably just return the unterlying data packages.

Would you be interested in such a pull request?

rlafuente commented 10 years ago

Definitely! A .json index would be handy; I probably ought to have phrased it as a "dynamic API"... let me know if the code is somehow confusing, since it was hacked together in a really short timeframe.

metaodi commented 10 years ago

Okay, I'll look into that. My goal is to use the JSON then to build a client-side search. I think with those additions, "Data Central" has the potential to become the smaller brother of CKAN :wink: