[BACKLOG-194] Refactor and docs for /repo/files/{pathId : .+}/metadata