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 Metadata Integration #81

Closed aphelionz closed 6 years ago

aphelionz commented 6 years ago

@Castronova Check this out when you have a chance. You have two new functions at your disposal

hs.resource(res_id).files.all() and hs.resource(res_id).files.metadata(file_id, params=None)

Passing params to the latter will result in a PUT, leaving params empty is a GET

Castronova commented 6 years ago

@aphelionz This works nicely!