public static Uri RepositoryArchiveLink(string owner, string name, ArchiveFormat archiveFormat, string reference) { return "repos/{0}/{1}/{2}/{3}".FormatUri(owner, name, archiveFormat.ToParameter(), reference); }
/// <summary> /// Returns the <see cref="Uri"/> for getting an archive of a given repository's contents, in a specific format /// </summary> /// <param name="repositoryId">The Id of the repository</param> /// <param name="archiveFormat">The format of the archive. Can be either tarball or zipball</param> /// <param name="reference">A valid Git reference.</param> /// <returns>The <see cref="Uri"/> for getting an archive of a given repository's contents, in a specific format</returns> public static Uri RepositoryArchiveLink(int repositoryId, ArchiveFormat archiveFormat, string reference) { return "repositories/{0}/{1}/{2}".FormatUri(repositoryId, archiveFormat.ToParameter(), reference); }