Pass config to Rest object