[ckan-dev] CKAN - Api question

Vladimir Mašala vladimirmasala at gmail.com
Mon Mar 31 13:07:06 UTC 2014


Thnx for answer.

Can you help me with something else, i am looking for api query which will
return data in JSON format or XML so i can use them in my applications
directy.
I know i can get link to .csv or .xls file and download it, but i have to
parse it after, i need  something like this
http://demo.ckan.org/api/action/datastore_search?resource_id=d81037dc-6fb8-46f9-a79a-2d447bc2b12b

Is way to get data like that with action or rest api, or i have to use
datastore?

Thank you


On Mon, Mar 31, 2014 at 2:42 PM, Stéphane Guidoin <stephane at opennorth.ca>wrote:

> Basic resource search is working:
> http://ckan-gradzagreb.cloudapp.net/en/api/action/resource_search?query=name:nezaposleni
>
>
> So you previous search was probably not working because your data is not
> in the datastore.
>
> Usually, except if this is a very well defined use case where I know the
> data will be in the datastore, I do a regular resource_search.
>
>
> On Mon, Mar 31, 2014 at 7:42 AM, Vladimir Mašala <vladimirmasala at gmail.com
> > wrote:
>
>> Site was down, because i was plying with config file.. :) now it should
>> be up.
>> As for question 2. you can check it now..
>>
>> I have enabled datastore but i think datapusher isn't working... So i am
>> trying to install/enable it.
>>
>>
>>
>> On Mon, Mar 31, 2014 at 1:34 PM, Stéphane Guidoin <stephane at opennorth.ca>wrote:
>>
>>> Hi Vladimir,
>>>
>>> Let's start with the beginning:
>>>
>>>
>>>    1. What error do you get when call the API? (At the moment, the
>>>    whole seems down...)
>>>    2. Does any other API call works (like just listing the datasets?
>>>    3. Did you enable the datastore in your configuration?
>>>
>>> Stéphane
>>>
>>>
>>> On Mon, Mar 31, 2014 at 7:17 AM, Vladimir Mašala <
>>> vladimirmasala at gmail.com> wrote:
>>>
>>>> Hi, i have installed ckan from package and site is up and running. At
>>>> moment i am having problems with ckan API.
>>>> I was checking demo site and i see api calls like this
>>>> http://demo.ckan.org/api/action/datastore_search?resource_id=d81037dc-6fb8-46f9-a79a-2d447bc2b12b and
>>>> that is exactly what i was looking for. Api calls which returns data so i
>>>> can consume it in applications.
>>>> So  decided to try same api calls on my site
>>>> http://ckan-gradzagreb.cloudapp.net/en , but it isnt working...
>>>>
>>>> Calls to http://ckan-gradzagreb.cloudapp.net/api/rest/dataset/vrtici retrun
>>>> dataset data name,id and so on..but calls to
>>>> http://ckan-gradzagreb.cloudapp.net/en/api/action/datastore_search?resource_id=e957cf04-8db9-4216-a4ab-d13416503f3c
>>>>  or
>>>> http://ckan-gradzagreb.cloudapp.net/en/api/action/datastore_search?resource_id=vrtici are
>>>> not working...
>>>>
>>>> Can any help me with this? Am i doing something wrong, maybe we didn't
>>>> setup datastore correctly or i have problem because i have used install
>>>> from package which is not latest ckan version?
>>>>
>>>> Thnx for help
>>>>
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> ckan-dev mailing list
>>>> ckan-dev at lists.okfn.org
>>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>>>
>>>>
>>>
>>>
>>> --
>>> Stéphane Guidoin
>>> Director, Transportation
>>> Open North
>>> 514-862-0084
>>> http://opennorth.ca
>>> Twitter: @opennorth / @hoedic
>>>
>>> _______________________________________________
>>> ckan-dev mailing list
>>> ckan-dev at lists.okfn.org
>>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>>
>>>
>>
>> _______________________________________________
>> ckan-dev mailing list
>> ckan-dev at lists.okfn.org
>> https://lists.okfn.org/mailman/listinfo/ckan-dev
>> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>>
>>
>
>
> --
> Stéphane Guidoin
> Director, Transportation
> Open North
> 514-862-0084
> http://opennorth.ca
> Twitter: @opennorth / @hoedic
>
> _______________________________________________
> ckan-dev mailing list
> ckan-dev at lists.okfn.org
> https://lists.okfn.org/mailman/listinfo/ckan-dev
> Unsubscribe: https://lists.okfn.org/mailman/options/ckan-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20140331/5acead57/attachment-0003.html>


More information about the ckan-dev mailing list