Scenario:-
- I have a collection in which some APIs are created; let’s call it the default collection.
- I also have multiple collections for different services, say 10 collections for 10 services, each containing APIs for their respective service.
- Now, I want the default collection to run every time a service collection runs. For example, if my Service 1 collection runs, the default collection should run before it.
- Similarly, when the second collection runs, the default collection should run before it again, and so on for all 10 services.
So, my question is how can we achieve this, and what would be the best approach for it? The challenge is that we cannot add the default collection inside every service collection, as this would create duplicates. For example, if there are 10 services, we would need to add the default collection in all 10, which would result in code duplication.