A little API Adapter for multipurpose REST API
This code serves a purpose of being data-driven API list.
This approach suggests you to store params, payload, endpoints etc. into single usable object and separate the action into different “executor”. It sounds like “data transformation”, which consists of data and transformer/actor.
Please check testA.ts
and testB.ts
to see different kinds of approach