add rest url support