changing restRouter api