mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-06 03:55:55 +00:00
use HTTP verbs for clarity: PATCH edition
This commit is contained in:
@@ -79,7 +79,7 @@ namespace Octokit
|
||||
return response.BodyAsObject;
|
||||
}
|
||||
|
||||
public async Task<T> Update<T>(Uri endpoint, object data)
|
||||
public async Task<T> Patch<T>(Uri endpoint, object data)
|
||||
{
|
||||
Ensure.ArgumentNotNull(endpoint, "endpoint");
|
||||
Ensure.ArgumentNotNull(data, "data");
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace Octokit
|
||||
Task<T> Post<T>(Uri endpoint, object data);
|
||||
Task<T> Put<T>(Uri endpoint, object data);
|
||||
Task<T> Put<T>(Uri endpoint, object data, string twoFactorAuthenticationCode);
|
||||
Task<T> Update<T>(Uri endpoint, object data);
|
||||
Task<T> Patch<T>(Uri endpoint, object data);
|
||||
[SuppressMessage("Microsoft.Design", "CA1004:GenericMethodsShouldProvideTypeParameter", Justification="Legitimate, but I'm not fixing it just yet.")]
|
||||
Task Delete<T>(Uri endpoint);
|
||||
Task<T> Post<T>(Uri uri, Stream rawData, string contentType, string accepts);
|
||||
|
||||
Reference in New Issue
Block a user