mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-02 19:00:47 +00:00
- Renamed ApiUrls.TeamsUpdateOrDelete method name to just "Team". This
was done because the same Uri is also used to get a team, not just updating and deleting. - Fixed references pointing to method name that was changed.
This commit is contained in:
@@ -61,7 +61,7 @@ namespace Octokit
|
||||
{
|
||||
Ensure.ArgumentNotNull(team, "team");
|
||||
|
||||
var endpoint = ApiUrls.TeamsUpdateOrDelete(id);
|
||||
var endpoint = ApiUrls.Team(id);
|
||||
return ApiConnection.Patch<Team>(endpoint, team);
|
||||
}
|
||||
|
||||
@@ -72,7 +72,7 @@ namespace Octokit
|
||||
/// <returns></returns>
|
||||
public Task DeleteTeam(int id)
|
||||
{
|
||||
var endpoint = ApiUrls.TeamsUpdateOrDelete(id);
|
||||
var endpoint = ApiUrls.Team(id);
|
||||
return ApiConnection.Delete(endpoint);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -901,12 +901,12 @@ namespace Octokit
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// returns the <see cref="Uri"/> for teams
|
||||
/// use for update or deleting a team
|
||||
/// Returns the <see cref="Uri"/> for teams
|
||||
/// use for getting, updating, or deleting a <see cref="Team"/>.
|
||||
/// </summary>
|
||||
/// <param name="id"></param>
|
||||
/// <param name="id">The id of the <see cref="Team"/>.</param>
|
||||
/// <returns></returns>
|
||||
public static Uri TeamsUpdateOrDelete(int id)
|
||||
public static Uri Team(int id)
|
||||
{
|
||||
return "teams/{0}".FormatUri(id);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user