[ckan-dev] how to create REST api like "/api/action/datastore_search?business=waterfee&cityid=TJ"

bupt bupt buptloveandroid at gmail.com
Mon May 20 02:13:58 UTC 2013


hello everyone,
        I want to create REST api like "
http://127.0.0.1/api/action/datastore_search?business=waterfee&cityid=TJ",
and only return TJ city's waterfee data which is JSON format. Now the CKAN
platform only create REST API like ""
http://127.0.0.1/api/action/datastore_search?resourceid=XXX" and return all
the data of dataset. It is not smart because I only want it to return TJ
city's waterfee data.
     Could you tell me how to achieve this goal. where and which file
should I modify to realize this function. Do I need to create new files?
     thank you very much!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130520/a6241683/attachment.html>


More information about the ckan-dev mailing list