A JS virtual endpoint accepts 3 params, request, session, and config. Out of the box, config seems to be an empty object. How can I populate it with values?
You should be able to populate the config object by adding a config_data key-value pair to the root of your API definition. The config_data key must take a new object (so a key-value hash or "map") as a value.
Please be aware that this is an orphaned feature and so we are unable to guarantee that it will work as expected.
Jess @ Tyk