diff --git a/Octokit/GitHubClient.cs b/Octokit/GitHubClient.cs index 6115f282..6b59e945 100644 --- a/Octokit/GitHubClient.cs +++ b/Octokit/GitHubClient.cs @@ -98,6 +98,7 @@ namespace Octokit GitDatabase = new GitDatabaseClient(apiConnection); Search = new SearchClient(apiConnection); Deployment = new DeploymentsClient(apiConnection); + Enterprise = new EnterpriseClient(apiConnection); } /// @@ -276,6 +277,14 @@ namespace Octokit /// public IDeploymentsClient Deployment { get; private set; } + /// + /// Access GitHub's Enterprise API. + /// + /// + /// Refer to the API docmentation for more information: https://developer.github.com/v3/enterprise/ + /// + public IEnterpriseClient Enterprise { get; private set; } + static Uri FixUpBaseUri(Uri uri) { Ensure.ArgumentNotNull(uri, "uri"); diff --git a/Octokit/IGitHubClient.cs b/Octokit/IGitHubClient.cs index 07aae0a5..281d0de9 100644 --- a/Octokit/IGitHubClient.cs +++ b/Octokit/IGitHubClient.cs @@ -134,5 +134,13 @@ /// Refer to the API docmentation for more information: https://developer.github.com/v3/search/ /// ISearchClient Search { get; } + + /// + /// Access GitHub's Enterprise API + /// + /// + /// Refer to the API documentation for more information: https://developer.github.com/v3/enterprise/ + /// + IEnterpriseClient Enterprise { get; } } }