forked from kevadesu/forgejo
Add API to check if team has repo access (#19540)
* Add API to check if team has repo access * Add test case
This commit is contained in:
parent
edff571aa9
commit
ac6c338428
4 changed files with 117 additions and 1 deletions
|
@ -11114,6 +11114,48 @@
|
|||
}
|
||||
},
|
||||
"/teams/{id}/repos/{org}/{repo}": {
|
||||
"get": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"organization"
|
||||
],
|
||||
"summary": "List a particular repo of team",
|
||||
"operationId": "orgListTeamRepo",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "id of the team",
|
||||
"name": "id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "organization that owns the repo to list",
|
||||
"name": "org",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "name of the repo to list",
|
||||
"name": "repo",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"$ref": "#/responses/Repository"
|
||||
},
|
||||
"404": {
|
||||
"$ref": "#/responses/notFound"
|
||||
}
|
||||
}
|
||||
},
|
||||
"put": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue