add repository files api