use HTTP verbs for clarity: POST edition

This commit is contained in:
half-ogre
2013-10-14 12:10:07 -07:00
parent e7da50cb9d
commit 7e6373ca53
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -160,7 +160,7 @@ namespace Octokit
{
Ensure.ArgumentNotNull(newAuthorization, "newAuthorization");
return await Client.Create<Authorization>(_authorizationsEndpoint, newAuthorization);
return await Client.Post<Authorization>(_authorizationsEndpoint, newAuthorization);
}
/// <summary>
+1 -1
View File
@@ -28,7 +28,7 @@ namespace Octokit
Ensure.ArgumentNotNull(data, "data");
var endpoint = "/repos/{0}/{1}/releases".FormatUri(owner, name);
return await Client.Create<Release>(endpoint, data);
return await Client.Post<Release>(endpoint, data);
}
+2 -2
View File
@@ -24,7 +24,7 @@ namespace Octokit
throw new ArgumentException("The new repository's name must not be null.");
var endpoint = new Uri("user/repos", UriKind.Relative);
return await Client.Create<Repository>(endpoint, newRepository);
return await Client.Post<Repository>(endpoint, newRepository);
}
/// <summary>
@@ -41,7 +41,7 @@ namespace Octokit
throw new ArgumentException("The new repository's name must not be null.");
var endpoint = "orgs/{0}/repos".FormatUri(organizationLogin);
return await Client.Create<Repository>(endpoint, newRepository);
return await Client.Post<Repository>(endpoint, newRepository);
}
/// <summary>
+1 -1
View File
@@ -41,7 +41,7 @@ namespace Octokit
Ensure.ArgumentNotNull(key, "key");
var endpoint = new Uri("/user/keys", UriKind.Relative);
return await Client.Create<SshKey>(endpoint, key);
return await Client.Post<SshKey>(endpoint, key);
}
public async Task<SshKey> Update(int id, SshKeyUpdate key)