hydroshare / hs_restclient

Python client for the https://www.hydroshare.org REST API
BSD 3-Clause "New" or "Revised" License
6 stars 8 forks source link

file_id is missing #106

Closed amabdallah closed 3 years ago

amabdallah commented 5 years ago

Did you guys drop the [id] from files?

This piece of code used to work fine before but now I found out there is no more [id] returned which then I can't upload the spatial extent spatial=hs.resource(resource_id).files.metadata(file_id, params)

Capture

sblack-usu commented 5 years ago

@amabdallah - You can use the path with the filename now, so in your case you could just pass in Bear_Weber.sqlite in place of the file_id

amabdallah commented 5 years ago

Thanks @sblack-usu It makes more sense or at least much easier to use the file name. I'll update my code and it should work fine. Adel