diff --git a/Octokit.Reactive/Clients/Enterprise/IObservableEnterpriseMigrationsClient.cs b/Octokit.Reactive/Clients/Enterprise/IObservableEnterpriseMigrationsClient.cs
index b3d63ba9..d23c1c46 100644
--- a/Octokit.Reactive/Clients/Enterprise/IObservableEnterpriseMigrationsClient.cs
+++ b/Octokit.Reactive/Clients/Enterprise/IObservableEnterpriseMigrationsClient.cs
@@ -14,17 +14,18 @@ namespace Octokit.Reactive
public interface IObservableEnterpriseMigrationsClient
{
///
- /// Get the status of a migration
+ /// Starts a new migration specified for the given organization.
///
///
- /// https://developer.github.com/v3/migration/migrations/#get-the-status-of-a-migration
+ /// https://developer.github.com/v3/migration/migrations/#start-a-migration
///
- /// The organization which is migrating.
- /// Migration ID of the organization.
- /// A object representing the state of migration.
- IObservable GetStatus(
- string org,
- int id);
+ /// The organization for which to start a migration.
+ /// Sprcifies parameters for the migration in a
+ /// object.
+ /// The started migration.
+ IObservable Start(
+ string org,
+ StartMigrationRequest migration);
///
/// Gets the list of the most recent migrations of the the organization.
@@ -38,18 +39,17 @@ namespace Octokit.Reactive
string org);
///
- /// Starts a new migration specified for the given organization.
+ /// Get the status of a migration
///
///
- /// https://developer.github.com/v3/migration/migrations/#start-a-migration
+ /// https://developer.github.com/v3/migration/migrations/#get-the-status-of-a-migration
///
- /// The organization for which to start a migration.
- /// Sprcifies parameters for the migration in a
- /// object.
- /// The started migration.
- IObservable Start(
- string org,
- StartMigrationRequest migration);
+ /// The organization which is migrating.
+ /// Migration ID of the organization.
+ /// A object representing the state of migration.
+ IObservable GetStatus(
+ string org,
+ int id);
///
/// Fetches the URL to a migration archive.
diff --git a/Octokit.Reactive/Clients/Enterprise/ObservableEnterpriseMigrationsClient.cs b/Octokit.Reactive/Clients/Enterprise/ObservableEnterpriseMigrationsClient.cs
index a94aa071..927ab4f4 100644
--- a/Octokit.Reactive/Clients/Enterprise/ObservableEnterpriseMigrationsClient.cs
+++ b/Octokit.Reactive/Clients/Enterprise/ObservableEnterpriseMigrationsClient.cs
@@ -28,17 +28,18 @@ namespace Octokit.Reactive
}
///
- /// Get the status of a migration
+ /// Starts a new migration specified for the given organization.
///
///
- /// https://developer.github.com/v3/migration/migrations/#get-the-status-of-a-migration
+ /// https://developer.github.com/v3/migration/migrations/#start-a-migration
///
- /// The organization which is migrating.
- /// Migration ID of the organization.
- /// A object representing the state of migration.
- public IObservable GetStatus(string org, int id)
+ /// The organization for which to start a migration.
+ /// Sprcifies parameters for the migration in a
+ /// object.
+ /// The started migration.
+ public IObservable Start(string org, StartMigrationRequest migration)
{
- return _client.GetStatus(org, id).ToObservable();
+ return _client.Start(org, migration).ToObservable();
}
///
@@ -55,18 +56,17 @@ namespace Octokit.Reactive
}
///
- /// Starts a new migration specified for the given organization.
+ /// Get the status of a migration
///
///
- /// https://developer.github.com/v3/migration/migrations/#start-a-migration
+ /// https://developer.github.com/v3/migration/migrations/#get-the-status-of-a-migration
///
- /// The organization for which to start a migration.
- /// Sprcifies parameters for the migration in a
- /// object.
- /// The started migration.
- public IObservable Start(string org, StartMigrationRequest migration)
+ /// The organization which is migrating.
+ /// Migration ID of the organization.
+ /// A object representing the state of migration.
+ public IObservable GetStatus(string org, int id)
{
- return _client.Start(org, migration).ToObservable();
+ return _client.GetStatus(org, id).ToObservable();
}
///
diff --git a/Octokit/Clients/Enterprise/EnterpriseMigrationsClient.cs b/Octokit/Clients/Enterprise/EnterpriseMigrationsClient.cs
index 1b41eccf..946c65a3 100644
--- a/Octokit/Clients/Enterprise/EnterpriseMigrationsClient.cs
+++ b/Octokit/Clients/Enterprise/EnterpriseMigrationsClient.cs
@@ -20,21 +20,23 @@ namespace Octokit
{ }
///
- /// Get the status of a migration
+ /// Starts a new migration specified for the given organization.
///
///
- /// https://developer.github.com/v3/migration/migrations/#get-the-status-of-a-migration
+ /// https://developer.github.com/v3/migration/migrations/#start-a-migration
///
- /// The organization which is migrating.
- /// Migration ID of the organization.
- /// A object representing the state of migration.
- public async Task GetStatus(string org, int id)
+ /// The organization for which to start a migration.
+ /// Sprcifies parameters for the migration in a
+ /// object.
+ /// The started migration.
+ public async Task Start(string org, StartMigrationRequest migration)
{
Ensure.ArgumentNotNullOrEmptyString(org, "org");
+ Ensure.ArgumentNotNull(migration, "migration");
- var endpoint = ApiUrls.EnterpriseMigrationById(org, id);
+ var endpoint = ApiUrls.EnterpriseMigrations(org);
- return await ApiConnection.Get(endpoint);
+ return await ApiConnection.Post(endpoint, migration);
}
///
@@ -55,23 +57,21 @@ namespace Octokit
}
///
- /// Starts a new migration specified for the given organization.
+ /// Get the status of a migration
///
///
- /// https://developer.github.com/v3/migration/migrations/#start-a-migration
+ /// https://developer.github.com/v3/migration/migrations/#get-the-status-of-a-migration
///
- /// The organization for which to start a migration.
- /// Sprcifies parameters for the migration in a
- /// object.
- /// The started migration.
- public async Task Start(string org, StartMigrationRequest migration)
+ /// The organization which is migrating.
+ /// Migration ID of the organization.
+ /// A object representing the state of migration.
+ public async Task GetStatus(string org, int id)
{
Ensure.ArgumentNotNullOrEmptyString(org, "org");
- Ensure.ArgumentNotNull(migration, "migration");
- var endpoint = ApiUrls.EnterpriseMigrations(org);
+ var endpoint = ApiUrls.EnterpriseMigrationById(org, id);
- return await ApiConnection.Post(endpoint, migration);
+ return await ApiConnection.Get(endpoint);
}
///
diff --git a/Octokit/Clients/Enterprise/IEnterpriseMigrationsClient.cs b/Octokit/Clients/Enterprise/IEnterpriseMigrationsClient.cs
index 6ac367a2..1169a002 100644
--- a/Octokit/Clients/Enterprise/IEnterpriseMigrationsClient.cs
+++ b/Octokit/Clients/Enterprise/IEnterpriseMigrationsClient.cs
@@ -13,17 +13,18 @@ namespace Octokit
public interface IEnterpriseMigrationsClient
{
///
- /// Get the status of a migration
+ /// Starts a new migration specified for the given organization.
///
///
- /// https://developer.github.com/v3/migration/migrations/#get-the-status-of-a-migration
+ /// https://developer.github.com/v3/migration/migrations/#start-a-migration
///
- /// The organization which is migrating.
- /// Migration ID of the organization.
- /// A object representing the state of migration.
- Task GetStatus(
+ /// The organization for which to start a migration.
+ /// Sprcifies parameters for the migration in a
+ /// object.
+ /// The started migration.
+ Task Start(
string org,
- int id);
+ StartMigrationRequest migration);
///
/// Gets the list of the most recent migrations of the the organization.
@@ -37,18 +38,17 @@ namespace Octokit
string org);
///
- /// Starts a new migration specified for the given organization.
+ /// Get the status of a migration
///
///
- /// https://developer.github.com/v3/migration/migrations/#start-a-migration
+ /// https://developer.github.com/v3/migration/migrations/#get-the-status-of-a-migration
///
- /// The organization for which to start a migration.
- /// Sprcifies parameters for the migration in a
- /// object.
- /// The started migration.
- Task Start(
+ /// The organization which is migrating.
+ /// Migration ID of the organization.
+ /// A object representing the state of migration.
+ Task GetStatus(
string org,
- StartMigrationRequest migration);
+ int id);
///
/// Fetches the URL to a migration archive.