Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2a07452

Browse files
Add admin team members api response example (#16)
1 parent cec7cdd commit 2a07452

File tree

3 files changed

+82
-49
lines changed

3 files changed

+82
-49
lines changed

‎Administration/Organizations.md

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -82,52 +82,3 @@ Status: 201 Created
8282
"permission": "write"
8383
}
8484
```
85-
86-
## Add team membership
87-
88-
```
89-
PUT /admin/teams/:teamid/members/:username
90-
```
91-
92-
### Response
93-
94-
```
95-
Status: 204 No Content
96-
```
97-
98-
## Remove team membership
99-
100-
```
101-
DELETE /admin/teams/:teamid/members/:username
102-
```
103-
104-
### Response
105-
106-
```
107-
Status: 204 No Content
108-
```
109-
110-
## Add or update team repository
111-
112-
```
113-
PUT /admin/teams/:teamid/repos/:reponame
114-
```
115-
116-
### Response
117-
118-
```
119-
Status: 204 No Content
120-
```
121-
122-
## Remove team repository
123-
124-
```
125-
DELETE /admin/teams/:teamid/repos/:reponame
126-
```
127-
128-
### Response
129-
130-
```
131-
Status: 204 No Content
132-
```
133-

‎Administration/Teams.md

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
# Teams Administration
2+
3+
## List all members of a team
4+
5+
```
6+
GET /admin/teams/:teamid/members
7+
```
8+
9+
### Response
10+
11+
```
12+
Status: 200 OK
13+
```
14+
```json
15+
[
16+
{
17+
"id": 1,
18+
"username": "gogs",
19+
"login": "gogs",
20+
"full_name": "Gogs",
21+
"email": "user@email.com",
22+
"avatar_url": "https://secure.gravatar.com/..."
23+
},
24+
{
25+
"id": 2,
26+
"username": "gogs-2",
27+
"login": "gogs-2",
28+
"full_name": "Gogs 2",
29+
"email": "user-2@email.com",
30+
"avatar_url": "https://secure.gravatar.com/..."
31+
}
32+
]
33+
```
34+
35+
## Add team membership
36+
37+
```
38+
PUT /admin/teams/:teamid/members/:username
39+
```
40+
41+
### Response
42+
43+
```
44+
Status: 204 No Content
45+
```
46+
47+
## Remove team membership
48+
49+
```
50+
DELETE /admin/teams/:teamid/members/:username
51+
```
52+
53+
### Response
54+
55+
```
56+
Status: 204 No Content
57+
```
58+
59+
## Add or update team repository
60+
61+
```
62+
PUT /admin/teams/:teamid/repos/:reponame
63+
```
64+
65+
### Response
66+
67+
```
68+
Status: 204 No Content
69+
```
70+
71+
## Remove team repository
72+
73+
```
74+
DELETE /admin/teams/:teamid/repos/:reponame
75+
```
76+
77+
### Response
78+
79+
```
80+
Status: 204 No Content
81+
```

‎README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ If you have any questions or concern, please [file an issue](https://github.com/
1414
- [Users](Administration/Users.md)
1515
- [Repositories](Administration/Repositories.md)
1616
- [Organizations](Administration/Organizations.md)
17+
- [Teams](Administration/Teams.md)
1718
- [Issues](Issues)
1819
- [Comments](Issues/Comments.md)
1920
- [Labels](Issues/Labels.md)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /