I have an Angular application that interacts with several REST APIs. There is some common logic when sending requests to these APIs (for example, logging the API name and endpoi