opendatatrentino / jackan

Java client to access CKAN repositories
http://opendatatrentino.github.io/jackan
Other
19 stars 13 forks source link

Implement File uploads #13

Closed DavidLeoni closed 8 years ago

DavidLeoni commented 9 years ago

Implementing file uploads doesn't seem difficult (see http://docs.ckan.org/en/ckan-2.2/filestore.html), although it's not a priority for now.

DavidLeoni commented 9 years ago

Tried to implement it, but curl example in documentation on dati.trentino dev instance just doesn't work. Ckan stubbornly requires a JSON in the post body, I have to throw the towel for now.

DavidLeoni commented 9 years ago

the curl example works on demo.ckan.org, though.

deinok commented 8 years ago

Probably you can do it with a simply Post Request

palcu commented 8 years ago

I have implemented a working example based solely on the Apache HttpClient. I will try to contribute back, but my Java knowledge is not that good. Take care of small quirks the API has.

DavidLeoni commented 8 years ago

Seems like this is a highly requested feature :-)

From forks I see @bobeal has already implemented something in Jackan:

https://github.com/bobeal/jackan/commit/7b715e8e7d31c118f4b1a78a5695379f9433a9c4

If anybody wants to take the final stab at ckan upload quirks, you can find the contribution guidelines here !

bobeal commented 8 years ago

Hello,

Indeed, I implemented something quick and dirty for a demonstration but planned to clean and finalize the code and contribute it. Probably in the next two weeks (I'm on holidays for the current week).

So, that's ok for me for the final stab :-)

Regards,

Benoit.

bobeal commented 8 years ago

Hello,

To keep you informed, I started working back on it today. I created a new branch, to be based on the stable branch-0.4 branch.

I plan to have something ready for a PR during this week.

Regards,

Benoit.