reading fg/tg config from file using rest API