Add appsettings values and switch factory to json API