[BACKLOG-194] Refactor and unit test for /repo/files/{pathId : .+}/children