To receive calls from the front end (T161328: User Interface for Single Image Batch Upload) a Flask app can be used.
To start the Flask app should be callable by a link of the form: app/GLAM/ID, where "GLAM" can be any glam for which there is a metadata-mapping available and "ID" is the identifier of the file to retrieve from the GLAM.