mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
新增:添加全部或者移除全部团队项目
This commit is contained in:
78
app/docs/slate/source/includes/_teams.md
Normal file
78
app/docs/slate/source/includes/_teams.md
Normal file
@@ -0,0 +1,78 @@
|
||||
# Teams
|
||||
|
||||
## 团队下新增所有的项目
|
||||
团队下新增所有的项目
|
||||
|
||||
> 示例:
|
||||
|
||||
```shell
|
||||
curl -X POST \
|
||||
http://localhost:3000/api/organizations/ceshi_org/teams/28/team_projects/create_all
|
||||
```
|
||||
|
||||
```javascript
|
||||
await octokit.request('POST /api/organizations/ceshi_org/teams/28/team_projects/create_all.json')
|
||||
```
|
||||
|
||||
### HTTP 请求
|
||||
`POST /api/organizations/:organization/teams/:id/team_projects/create_all.json`
|
||||
|
||||
### 请求参数:
|
||||
参数 | 必选 | 默认 | 类型 | 字段说明
|
||||
--------- | ------- | ------- | -------- | ----------
|
||||
|organization |是| | string |组织标识 |
|
||||
|id |是| | integer|团队 ID|
|
||||
|
||||
### 返回字段说明:
|
||||
|
||||
|
||||
> 返回的JSON示例:
|
||||
|
||||
```json
|
||||
{
|
||||
"status": 0,
|
||||
"message": "success"
|
||||
}
|
||||
```
|
||||
<aside class="success">
|
||||
Success Data.
|
||||
</aside>
|
||||
|
||||
|
||||
## 团队下删除所有的项目
|
||||
团队下删除所有的项目
|
||||
|
||||
> 示例:
|
||||
|
||||
```shell
|
||||
curl -X DELETE \
|
||||
http://localhost:3000/api/organizations/ceshi_org/teams/28/team_projects/destroy_all
|
||||
```
|
||||
|
||||
```javascript
|
||||
await octokit.request('DELETE /api/organizations/ceshi_org/teams/28/team_projects/destroy_all.json')
|
||||
```
|
||||
|
||||
### HTTP 请求
|
||||
`DELETE /api/organizations/:organization/teams/:id/team_projects/destroy_all.json`
|
||||
|
||||
### 请求参数:
|
||||
参数 | 必选 | 默认 | 类型 | 字段说明
|
||||
--------- | ------- | ------- | -------- | ----------
|
||||
|organization |是| | string |组织标识 |
|
||||
|id |是| | integer|团队 ID|
|
||||
|
||||
### 返回字段说明:
|
||||
|
||||
|
||||
> 返回的JSON示例:
|
||||
|
||||
```json
|
||||
{
|
||||
"status": 0,
|
||||
"message": "success"
|
||||
}
|
||||
```
|
||||
<aside class="success">
|
||||
Success Data.
|
||||
</aside>
|
||||
Reference in New Issue
Block a user