[ckan-dev] API to create dataset

Jing Liu jliu at accela.com
Fri Mar 22 20:48:44 UTC 2013


I'd like to use CKAN API to create dataset in an automatic way. I used the following body post to API like /api/rest/dataset/test_from_api:

{
"version": "1.1",
"resources": [
{
   "id": "5f315f65-2a9f-4bc1-8c7d-33013f3101c6",
   "name" : "test1 from API",
   "description": "test1 from API desc",
   "url": "http://aca.dev.accela.com/test1-ist/test_1.csv"
}
]
}

It turns out the CSV data is not saved CKAN local storage. CKAN uses HTTP to connect to the URL live time. Is there any different CKAN API to use, or different CKAN configuration, which can make the data store in CKAN?

Thanks,
Jing

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20130322/54d13634/attachment.html>


More information about the ckan-dev mailing list