Merge branch 'master' into api-paging-part-deux

This commit is contained in:
Brendan Forster
2016-02-24 11:40:43 +11:00
54 changed files with 2609 additions and 69 deletions
+15
View File
@@ -199,6 +199,21 @@ namespace Octokit
return Connection.Post(uri);
}
/// <summary>
/// Creates a new API resource in the list at the specified URI.
/// </summary>
/// <typeparam name="T">The API resource's type.</typeparam>
/// <param name="uri">URI of the API resource to get</param>
/// <returns>The created API resource.</returns>
/// <exception cref="ApiException">Thrown when an API error occurs.</exception>
public async Task<T> Post<T>(Uri uri)
{
Ensure.ArgumentNotNull(uri, "uri");
var response = await Connection.Post<T>(uri).ConfigureAwait(false);
return response.Body;
}
/// <summary>
/// Creates a new API resource in the list at the specified URI.
/// </summary>