Dynamically generate API config files