diff --git a/Octokit.Tests/Clients/GitHubAppInstallationsClientTests.cs b/Octokit.Tests/Clients/GitHubAppInstallationsClientTests.cs index 61a6f055ed..cbdddc24ae 100644 --- a/Octokit.Tests/Clients/GitHubAppInstallationsClientTests.cs +++ b/Octokit.Tests/Clients/GitHubAppInstallationsClientTests.cs @@ -1,7 +1,7 @@ using System; using System.Linq; using NSubstitute; -using Octokit.Clients; +using Octokit; using Xunit; namespace Octokit.Tests.Clients @@ -97,4 +97,4 @@ public void GetsFromCorrectUrllWithApiOptions() } } } -} \ No newline at end of file +} diff --git a/Octokit.Tests/Reactive/ObservableGitHubAppInstallationsClientTests.cs b/Octokit.Tests/Reactive/ObservableGitHubAppInstallationsClientTests.cs index d73dbe729e..d665d4419e 100644 --- a/Octokit.Tests/Reactive/ObservableGitHubAppInstallationsClientTests.cs +++ b/Octokit.Tests/Reactive/ObservableGitHubAppInstallationsClientTests.cs @@ -2,7 +2,7 @@ using System.Collections.Generic; using System.Linq; using NSubstitute; -using Octokit.Clients; +using Octokit; using Octokit.Reactive; using Xunit; @@ -99,4 +99,4 @@ public void GetsFromCorrectUrllWithApiOptions() } } } -} \ No newline at end of file +} diff --git a/Octokit/Clients/GitHubAppInstallationsClient.cs b/Octokit/Clients/GitHubAppInstallationsClient.cs index 7f18705ab5..ed6c015c89 100644 --- a/Octokit/Clients/GitHubAppInstallationsClient.cs +++ b/Octokit/Clients/GitHubAppInstallationsClient.cs @@ -1,7 +1,7 @@ using System.Linq; using System.Threading.Tasks; -namespace Octokit.Clients +namespace Octokit { /// /// A client for GitHub Applications Installations API. @@ -19,6 +19,7 @@ public GitHubAppInstallationsClient(IApiConnection apiConnection) : base(apiConn /// List repositories of the authenticated GitHub App Installation (requires GitHubApp Installation-Token auth). /// /// https://developer.github.com/v3/apps/installations/#list-repositories + [ManualRoute("GET", "/installation/repositories")] public Task GetAllRepositoriesForCurrent() { return GetAllRepositoriesForCurrent(ApiOptions.None); @@ -29,6 +30,7 @@ public Task GetAllRepositoriesForCurrent() /// /// Options for changing the API response /// https://developer.github.com/v3/apps/installations/#list-repositories + [ManualRoute("GET", "/installation/repositories")] public async Task GetAllRepositoriesForCurrent(ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -45,6 +47,7 @@ public async Task GetAllRepositoriesForCurrent(ApiOptions /// /// The Id of the installation /// https://developer.github.com/v3/apps/installations/#list-repositories-accessible-to-the-user-for-an-installation + [ManualRoute("GET", "/user/installation/{id}/repositories")] public Task GetAllRepositoriesForCurrentUser(long installationId) { return GetAllRepositoriesForCurrentUser(installationId, ApiOptions.None); @@ -56,6 +59,7 @@ public Task GetAllRepositoriesForCurrentUser(long installa /// The Id of the installation /// Options for changing the API response /// https://developer.github.com/v3/apps/installations/#list-repositories-accessible-to-the-user-for-an-installation + [ManualRoute("GET", "/user/installation/{id}/repositories")] public async Task GetAllRepositoriesForCurrentUser(long installationId, ApiOptions options) { Ensure.ArgumentNotNull(options, nameof(options)); @@ -67,4 +71,4 @@ public async Task GetAllRepositoriesForCurrentUser(long in results.SelectMany(x => x.Repositories).ToList()); } } -} \ No newline at end of file +} diff --git a/Octokit/Clients/GitHubAppsClient.cs b/Octokit/Clients/GitHubAppsClient.cs index d9920c3629..b04dd007ea 100644 --- a/Octokit/Clients/GitHubAppsClient.cs +++ b/Octokit/Clients/GitHubAppsClient.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Linq; using System.Threading.Tasks; -using Octokit.Clients; namespace Octokit {