add rest server learn