imeji-community / imeji

imeji source code can now be found on https://github.com/MPDL/imeji.
https://github.com/MPDL/imeji
13 stars 15 forks source link

API: generating list of all files uploaded before #1117

Closed ioverka closed 8 years ago

ioverka commented 8 years ago

Context: DokDisTool (MPDL Information)

For the automated file upload, we create a list of all files uploaded previously to distinguish which files can be loaded and which need to be updated instead. Currently, this process is pretty time and resource(?) consuming because the script has to request all items for all relevant collections (>90).

Introducing a search by collectionId could improve the performance - and maybe this is already possible?

https://spot.mpdl.mpg.de:443/rest/items?q=(col%253D%253D%22http%253A%252F%252Fspot.mpdl.mpg.de%252Fcollection%252FfwXOOfjVViVN60Pp%22)%2BOR%2B(col%253D%253D%22http%253A%252F%252Fspot.mpdl.mpg.de%252Fcollection%252FjDGPV76o6BbL39Q8%22)

The double encoding looks a little bit weird though... is that the correct? What is the maximal length of the query string?

natasab commented 8 years ago

There is a REST interface which will list you the items of the collection..i.e. in your example

https://spot.mpdl.mpg.de/rest/collections/jDGPV76o6BbL39Q8/items

see also

https://github.com/imeji-community/imeji/wiki/Collections:-Get-collection-Items

natasab commented 8 years ago

@ioverka please confirm if this is still an issue for you, otherwise close it please.

natasab commented 8 years ago

closing this issue, as no further input was needed.