mjordan / islandora_bagger

Tool for generating Bags for Islandora 8 content.
MIT License
4 stars 12 forks source link

Add log of Bag locations so REST requests can be made to get download URL #15

Closed mjordan closed 5 years ago

mjordan commented 5 years ago

Since this microservice might not be running on the same server as Islandora, we need a way to allow users to download serialized Bags. We should log where the Bag is saved, and then allow REST GET requests using node IDs to get the location they can be downloaded. This assumes that the Bags are being saved to a web-accessible directory.

mjordan commented 5 years ago

Log, and REST GET capability, added as of 6b681d7cb468f2bb8a4533e43f52a227e7f681ba. However, the locations are on the filesystem (e.g., /tmp/4.zip). We need a way to map that type of location to a URL.

mjordan commented 5 years ago

Maybe a regex in the app-wide parameters mentioned in #16 would do the trick.

mjordan commented 5 years ago

Resolved with 00ccb3382c28f7cab62e2f6d6e0227571a480f95.