From ca326845280f647d62c22e2cf9aa7335aaffe5be Mon Sep 17 00:00:00 2001 From: Henrik Andersson Date: Tue, 5 Nov 2013 23:22:12 +1000 Subject: [PATCH] Comment ApiUrls used by the Organization Members API Client --- Octokit/Helpers/ApiUrls.cs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Octokit/Helpers/ApiUrls.cs b/Octokit/Helpers/ApiUrls.cs index e8d4e3cf..3f6a5d38 100644 --- a/Octokit/Helpers/ApiUrls.cs +++ b/Octokit/Helpers/ApiUrls.cs @@ -247,16 +247,41 @@ namespace Octokit return "repos/{0}/{1}/assignees/{2}".FormatUri(owner, name, login); } + /// + /// Returns the that returns a 204 if requester is an organization member and + /// the user is, publicly or privately a member of the organization. + /// Returns a 404 if the requester is an organization member and the user is not a member or + /// the requester is not an organization member and is inquiring about themselves. + /// Returns a 302 if the requester is not an organization member. + /// + /// The organization being inquired about + /// The user being inquired about + /// public static Uri CheckMember(string org, string name) { return "orgs/{0}/members/{1}".FormatUri(org, name); } + /// + /// Returns the that returns a 204 if the user is a public member of the + /// organization. + /// Otherwise returns a 404. + /// + /// The organization being inquired about + /// The user being inquired about + /// public static Uri CheckMemberPublic(string org, string name) { return "orgs/{0}/public_members/{1}".FormatUri(org, name); } + /// + /// Returns the that returns a 204 if the user is publicizing, or concealing + /// their membership in an organization. + /// + /// The organization to publicize, or conceal their membership of + /// The user publicizing, or concealing their membership of the organization + /// public static Uri OrganizationMembership(string org, string name) { return "orgs/{0}/public_members/{1}".FormatUri(org, name);