change Rest api in knowledgetreecontroller