[ckan-dev] return specified results through datastore_search API

天龙出云 dragoniszhang at gmail.com
Tue May 14 01:53:12 UTC 2013


hello everyone,

I want to use datastore_search API to find specified results with curl
command like the following:
curl
http://127.0.0.1:5000/api/3/action/datastore_search?resource_id=adae6ab9-731d-462a-82c9-fd1e8c9ea3f6&fields='c,n
'
the value of fields 'c,n' are the column name of the table in datastore
database.
The problem is that the returned results still contain all the information
instead of the specified results I wish. Is there any problem with my curl
command? I did not find a detailed tutorial to use datastore_search API
with multiple parameters.

Another question is that if I want to give aliases to a resource on the web
page, where can I input the aliases to send to the datastore_create API? I
did not see anywhere to input the aliases attribute when I create a
resource on web page.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130514/b11c8701/attachment.html>


More information about the ckan-dev mailing list