Skip to content

Commit 66406d9

Browse files
committed
Change :user to refer to :username
1 parent 0709686 commit 66406d9

13 files changed

Lines changed: 37 additions & 40 deletions

File tree

content/v3/activity/events.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,26 +65,26 @@ These are events that you've received by watching repos and following
6565
users. If you are authenticated as the given user, you will see private
6666
events. Otherwise, you'll only see public events.
6767

68-
GET /users/:user/received_events
68+
GET /users/:username/received_events
6969

7070
## List public events that a user has received
7171

72-
GET /users/:user/received_events/public
72+
GET /users/:username/received_events/public
7373

7474
## List events performed by a user
7575

7676
If you are authenticated as the given user, you will see your private
7777
events. Otherwise, you'll only see public events.
7878

79-
GET /users/:user/events
79+
GET /users/:username/events
8080

8181
## List public events performed by a user
8282

83-
GET /users/:user/events/public
83+
GET /users/:username/events/public
8484

8585
## List events for an organization
8686

8787
This is the user's organization dashboard. You must be authenticated as
8888
the user to view this.
8989

90-
GET /users/:user/events/orgs/:org
90+
GET /users/:username/events/orgs/:org

content/v3/activity/starring.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,15 @@ for more details.
3434

3535
List repositories being starred by a user.
3636

37-
GET /users/:user/starred
37+
GET /users/:username/starred
3838

3939
List repositories being starred by the authenticated user.
4040

4141
GET /user/starred
4242

4343
### Parameters
4444

45-
Name | Type | Description
45+
Name | Type | Description
4646
-----|------|--------------
4747
`sort`|`string` | One of `created` (when the repository was starred) or `updated` (when it was last pushed to). Default: `created`
4848
`direction`|`string` | One of `asc` (ascending) or `desc` (descending). Default: `desc`

content/v3/activity/watching.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ post](/changes/2012-9-5-watcher-api/) for more details.
3636

3737
List repositories being watched by a user.
3838

39-
GET /users/:user/subscriptions
39+
GET /users/:username/subscriptions
4040

4141
List repositories being watched by the authenticated user.
4242

@@ -66,7 +66,7 @@ List repositories being watched by the authenticated user.
6666

6767
### Parameters
6868

69-
Name | Type | Description
69+
Name | Type | Description
7070
-----|------|--------------
7171
`subscribed`|`boolean`| Determines if notifications should be received from this repository.
7272
`ignored`|`boolean`| Determines if all notifications should be blocked from this repository.

content/v3/gists.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ The API will return a 401 "Bad credentials" response if the gists scope was give
1919

2020
List a user's gists:
2121

22-
GET /users/:user/gists
22+
GET /users/:username/gists
2323

2424
List the authenticated user's gists or if called anonymously, this will
2525
return all public gists:
@@ -78,7 +78,7 @@ The keys in the `files` hash are the `string` filename, and the value is another
7878

7979
<div class="alert">
8080
<p>
81-
<strong>Note</strong>: Don't name your files "gistfile" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally.
81+
<strong>Note</strong>: Don't name your files "gistfile" with a numerical suffix. This is the format of the automatic naming scheme that Gist uses internally.
8282
</p>
8383
</div>
8484

content/v3/orgs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ title: Organizations | GitHub API
1111

1212
List all public organizations for an unauthenticated user. Lists private *and* public organizations for authenticated users.
1313

14-
GET /users/:user/orgs
14+
GET /users/:username/orgs
1515

1616
List public and private organizations for the authenticated user.
1717

@@ -37,7 +37,7 @@ List public and private organizations for the authenticated user.
3737

3838
### Input
3939

40-
Name | Type | Description
40+
Name | Type | Description
4141
-----|------|--------------
4242
`billing_email`|`string` | Billing email address. This address is not publicized.
4343
`company`|`string` | The company name.

content/v3/orgs/members.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Name | Type | Description
3838

3939
Check if a user is, publicly or privately, a member of the organization.
4040

41-
GET /orgs/:org/members/:user
41+
GET /orgs/:org/members/:username
4242

4343
### Response if requester is an organization member and user is a member
4444

@@ -66,7 +66,7 @@ To add someone as a member to an org, you must add them to a
6666
Removing a user from this list will remove them from all teams and
6767
they will no longer have any access to the organization's repositories.
6868

69-
DELETE /orgs/:org/members/:user
69+
DELETE /orgs/:org/members/:username
7070

7171
### Response
7272

@@ -86,7 +86,7 @@ publicized or not.
8686

8787
## Check public membership
8888

89-
GET /orgs/:org/public_members/:user
89+
GET /orgs/:org/public_members/:username
9090

9191
### Response if user is a public member
9292

@@ -101,15 +101,15 @@ publicized or not.
101101
The user can publicize their own membership.
102102
(A user cannot publicize the membership for another user.)
103103

104-
PUT /orgs/:org/public_members/:user
104+
PUT /orgs/:org/public_members/:username
105105

106106
### Response
107107

108108
<%= headers 204 %>
109109

110110
## Conceal a user's membership
111111

112-
DELETE /orgs/:org/public_members/:user
112+
DELETE /orgs/:org/public_members/:username
113113

114114
### Response
115115

content/v3/orgs/teams.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ In order to create a team, the authenticated user must be an owner of
3838

3939
### Parameters
4040

41-
Name | Type | Description
41+
Name | Type | Description
4242
-----|------|--------------
4343
`name`|`string` | **Required**. The name of the team.
4444
`repo_names`|`array` of `strings` | The repositories to add the team to.
@@ -65,7 +65,7 @@ the org that the team is associated with.
6565

6666
### Parameters
6767

68-
Name | Type | Description
68+
Name | Type | Description
6969
-----|------|--------------
7070
`name`|`string` | **Required**. The name of the team.
7171
`permission`|`string` | The permission to grant the team. Can be one of:<br/> * `pull` - team members can pull, but not push to or administer these repositories.<br/> * `push` - team members can pull and push, but not administer these repositories.<br/> * `admin` - team members can pull, push and administer these repositories. Default: `pull`
@@ -109,7 +109,7 @@ member of the team.
109109
In order to get if a user is a member of a team, the authenticated user
110110
must be a member of the team.
111111

112-
GET /teams/:id/members/:user
112+
GET /teams/:id/members/:username
113113

114114
### Response if user is a member
115115

@@ -125,7 +125,7 @@ In order to add a user to a team, the authenticated user must have
125125
'admin' permissions to the team or be an owner of the org that the team
126126
is associated with.
127127

128-
PUT /teams/:id/members/:user
128+
PUT /teams/:id/members/:username
129129

130130
### Response
131131

@@ -150,7 +150,7 @@ In order to remove a user from a team, the authenticated user must have
150150
is associated with.
151151
NOTE: This does not delete the user, it just remove them from the team.
152152

153-
DELETE /teams/:id/members/:user
153+
DELETE /teams/:id/members/:username
154154

155155
### Response
156156

content/v3/repos.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Name | Type | Description
3030

3131
List public repositories for the specified user.
3232

33-
GET /users/:user/repos
33+
GET /users/:username/repos
3434

3535
### Parameters
3636

content/v3/repos/collaborators.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ collaborators list.
2323

2424
## Check if a user is a collaborator {#get}
2525

26-
GET /repos/:owner/:repo/collaborators/:user
26+
GET /repos/:owner/:repo/collaborators/:username
2727

2828
### Response if user is a collaborator
2929

@@ -35,15 +35,15 @@ collaborators list.
3535

3636
## Add user as a collaborator {#add-collaborator}
3737

38-
PUT /repos/:owner/:repo/collaborators/:user
38+
PUT /repos/:owner/:repo/collaborators/:username
3939

4040
### Response
4141

4242
<%= headers 204 %>
4343

4444
## Remove user as a collaborator {#remove-collaborator}
4545

46-
DELETE /repos/:owner/:repo/collaborators/:user
46+
DELETE /repos/:owner/:repo/collaborators/:username
4747

4848
### Response
4949

content/v3/users.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,13 @@ title: Users | GitHub API
99

1010
Many of the resources on the users API provide a shortcut for getting
1111
information about the currently authenticated user. If a request URL
12-
does not include a `:user` parameter then the response will be for the
12+
does not include a `:username` parameter then the response will be for the
1313
logged in user (and you must pass [authentication
1414
information](/v3/#authentication) with your request).
1515

16-
Throughout this documentation, the `:user` parameter denotes the username,
17-
not the user ID.
18-
1916
## Get a single user
2017

21-
GET /users/:user
18+
GET /users/:username
2219

2320
### Response
2421

0 commit comments

Comments
 (0)