mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-05 03:30:34 +00:00
Added Task Put(Uri uri)
This commit is contained in:
@@ -166,6 +166,18 @@ namespace Octokit
|
||||
return response.BodyAsObject;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Puts the API object at the specified URI.
|
||||
/// </summary>
|
||||
/// <param name="uri">URI of the API resource to put</param>
|
||||
/// <returns>A <see cref="Task"/> for the request's execution.</returns>
|
||||
public Task Delete(Uri uri)
|
||||
{
|
||||
Ensure.ArgumentNotNull(uri, "uri");
|
||||
|
||||
return Connection.PutAsync(uri);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates or replaces the API resource at the specified URI.
|
||||
/// </summary>
|
||||
|
||||
@@ -100,6 +100,13 @@ namespace Octokit
|
||||
/// <exception cref="ApiException">Thrown when an API error occurs.</exception>
|
||||
Task<T> Post<T>(Uri uri, object data, string accepts, string contentType);
|
||||
|
||||
/// <summary>
|
||||
/// PUTS the API object at the specified URI.
|
||||
/// </summary>
|
||||
/// <param name="uri">URI of the API resource to delete</param>
|
||||
/// <returns>A <see cref="Task"/> for the request's execution.</returns>
|
||||
Task Put(Uri uri);
|
||||
|
||||
/// <summary>
|
||||
/// Creates or replaces the API resource at the specified URI.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user