modify restapi case for node