Middleware for handling calls to the ALEPH RESTful API from external systems