add GetAll Method for uri and accepts

add api

fix GetAllMethod

fix ApiOptions
This commit is contained in:
maddin2016
2016-05-27 15:23:26 +02:00
parent 06fdace3b4
commit 6bedcf8993
3 changed files with 28 additions and 6 deletions
+11 -1
View File
@@ -91,6 +91,16 @@ namespace Octokit
/// <exception cref="ApiException">Thrown when an API error occurs.</exception>
Task<IReadOnlyList<T>> GetAll<T>(Uri uri, IDictionary<string, string> parameters);
/// <summary>
/// Gets all API resources in the list at the specified URI.
/// </summary>
/// <typeparam name="T">Type of the API resource in the list.</typeparam>
/// <param name="uri">URI of the API resource to get</param>
/// <param name="accepts">Accept header to use for the API request</param>
/// <returns><see cref="IReadOnlyList{T}"/> of the The API resources in the list.</returns>
/// <exception cref="ApiException">Thrown when an API error occurs.</exception>
Task<IReadOnlyList<T>> GetAll<T>(Uri uri, string accepts);
/// <summary>
/// Gets all API resources in the list at the specified URI.
/// </summary>
@@ -301,7 +311,7 @@ namespace Octokit
/// <param name="accepts">Specifies accept response media type</param>
/// <returns>The returned <seealso cref="HttpStatusCode"/></returns>
Task Delete(Uri uri, object data, string accepts);
/// <summary>
/// Executes a GET to the API object at the specified URI. This operation is appropriate for
/// API calls which wants to return the redirect URL.