mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-05 23:06:10 +00:00
docs: Update organizations-related GetAllForUser method docs to make it clear that only public memberships are returned (#2487)
This commit is contained in:
@@ -65,19 +65,27 @@ namespace Octokit
|
||||
Task<IReadOnlyList<Organization>> GetAllForCurrent(ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all <see cref="Organization" />s for the specified user.
|
||||
/// Returns <see cref="Organization" />s which the specified user is a member of,
|
||||
/// where the user hasn't marked their membership as private.
|
||||
/// </summary>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>A list of the specified user's <see cref="Organization"/>s.</returns>
|
||||
/// <returns>
|
||||
/// A list of the <see cref="Organization"/>s which the specified user is a member
|
||||
/// of, where they haven't marked their membership as private
|
||||
/// </returns>
|
||||
Task<IReadOnlyList<Organization>> GetAllForUser(string user);
|
||||
|
||||
/// <summary>
|
||||
/// Returns all <see cref="Organization" />s for the specified user.
|
||||
/// Returns <see cref="Organization" />s which the specified user is a member of,
|
||||
/// where the user hasn't marked their membership as private.
|
||||
/// </summary>
|
||||
/// <param name="user">The login of the user</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>A list of the specified user's <see cref="Organization"/>s.</returns>
|
||||
/// <returns>
|
||||
/// A list of the <see cref="Organization"/>s which the specified user is a member
|
||||
/// of, where they haven't marked their membership as private
|
||||
/// </returns>
|
||||
Task<IReadOnlyList<Organization>> GetAllForUser(string user, ApiOptions options);
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -85,11 +85,15 @@ namespace Octokit
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns all <see cref="Organization" />s for the specified user.
|
||||
/// Returns <see cref="Organization" />s which the specified user is a member of,
|
||||
/// where the user hasn't marked their membership as private.
|
||||
/// </summary>
|
||||
/// <param name="user">The login of the user</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>A list of the specified user's <see cref="Organization"/>s.</returns>
|
||||
/// <returns>
|
||||
/// A list of the <see cref="Organization"/>s which the specified user is a member
|
||||
/// of, where they haven't marked their membership as private
|
||||
/// </returns>
|
||||
[ManualRoute("GET", "/users/{username}/orgs")]
|
||||
public Task<IReadOnlyList<Organization>> GetAllForUser(string user)
|
||||
{
|
||||
@@ -99,12 +103,16 @@ namespace Octokit
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns all <see cref="Organization" />s for the specified user.
|
||||
/// Returns <see cref="Organization" />s which the specified user is a member of,
|
||||
/// where the user hasn't marked their membership as private.
|
||||
/// </summary>
|
||||
/// <param name="user">The login of the user</param>
|
||||
/// <param name="options">Options for changing the API response</param>
|
||||
/// <exception cref="ApiException">Thrown when a general API error occurs.</exception>
|
||||
/// <returns>A list of the specified user's <see cref="Organization"/>s.</returns>
|
||||
/// <returns>
|
||||
/// A list of the <see cref="Organization"/>s which the specified user is a member
|
||||
/// of, where they haven't marked their membership as private
|
||||
/// </returns>
|
||||
[ManualRoute("GET", "/users/{username}/orgs")]
|
||||
public Task<IReadOnlyList<Organization>> GetAllForUser(string user, ApiOptions options)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user