Added config file generation in API