mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-04 18:56:28 +02:00
update swagger definitions
This commit is contained in:
parent
61b9442d2e
commit
3c9dc0daf4
15141
templates/swagger/v1_groups.json
Normal file
15141
templates/swagger/v1_groups.json
Normal file
File diff suppressed because it is too large
Load Diff
113
templates/swagger/v1_json.tmpl
generated
113
templates/swagger/v1_json.tmpl
generated
@ -653,6 +653,95 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/admin/unadopted/{owner}/group/{group_id}/{repo}": {
|
||||
"post": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"admin"
|
||||
],
|
||||
"summary": "Adopt unadopted files as a repository",
|
||||
"operationId": "adminAdoptRepositoryMixin0",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "owner of the repo",
|
||||
"name": "owner",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "name of the repo",
|
||||
"name": "repo",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "group ID of the repo",
|
||||
"name": "group_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"204": {
|
||||
"$ref": "#/responses/empty"
|
||||
},
|
||||
"403": {
|
||||
"$ref": "#/responses/forbidden"
|
||||
},
|
||||
"404": {
|
||||
"$ref": "#/responses/notFound"
|
||||
}
|
||||
}
|
||||
},
|
||||
"delete": {
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"admin"
|
||||
],
|
||||
"summary": "Delete unadopted files",
|
||||
"operationId": "adminDeleteUnadoptedRepositoryMixin0",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
"description": "owner of the repo",
|
||||
"name": "owner",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "name of the repo",
|
||||
"name": "repo",
|
||||
"in": "path",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "integer",
|
||||
"format": "int64",
|
||||
"description": "group ID of the repo",
|
||||
"name": "group_id",
|
||||
"in": "path",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"204": {
|
||||
"$ref": "#/responses/empty"
|
||||
},
|
||||
"403": {
|
||||
"$ref": "#/responses/forbidden"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/admin/unadopted/{owner}/{group_id}/{repo}": {
|
||||
"post": {
|
||||
"produces": [
|
||||
@ -7616,8 +7705,8 @@
|
||||
"tags": [
|
||||
"repository"
|
||||
],
|
||||
"summary": "Update a branch",
|
||||
"operationId": "repoUpdateBranchMixin0",
|
||||
"summary": "Rename a branch",
|
||||
"operationId": "repoRenameBranchMixin0",
|
||||
"parameters": [
|
||||
{
|
||||
"type": "string",
|
||||
@ -7644,7 +7733,7 @@
|
||||
"name": "body",
|
||||
"in": "body",
|
||||
"schema": {
|
||||
"$ref": "#/definitions/UpdateBranchRepoOption"
|
||||
"$ref": "#/definitions/RenameBranchRepoOption"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -8563,7 +8652,7 @@
|
||||
"tags": [
|
||||
"repository"
|
||||
],
|
||||
"summary": "Update a file in a repository",
|
||||
"summary": "Update a file in a repository if SHA is set, or create the file if SHA is not set",
|
||||
"operationId": "repoUpdateFileMixin0",
|
||||
"parameters": [
|
||||
{
|
||||
@ -8608,6 +8697,9 @@
|
||||
"200": {
|
||||
"$ref": "#/responses/FileResponse"
|
||||
},
|
||||
"201": {
|
||||
"$ref": "#/responses/FileResponse"
|
||||
},
|
||||
"403": {
|
||||
"$ref": "#/responses/error"
|
||||
},
|
||||
@ -8797,7 +8889,7 @@
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/UpdateFileOptions"
|
||||
"$ref": "#/definitions/ApplyDiffPatchFileOptions"
|
||||
}
|
||||
},
|
||||
{
|
||||
@ -10278,7 +10370,7 @@
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "comma separated list of labels. Fetch only issues that have any of this labels. Non existent labels are discarded",
|
||||
"description": "comma separated list of label names. Fetch only issues that have any of this label names. Non existent labels are discarded.",
|
||||
"name": "labels",
|
||||
"in": "query"
|
||||
},
|
||||
@ -10802,6 +10894,9 @@
|
||||
"404": {
|
||||
"$ref": "#/responses/error"
|
||||
},
|
||||
"413": {
|
||||
"$ref": "#/responses/error"
|
||||
},
|
||||
"422": {
|
||||
"$ref": "#/responses/validationError"
|
||||
},
|
||||
@ -11523,6 +11618,9 @@
|
||||
"404": {
|
||||
"$ref": "#/responses/error"
|
||||
},
|
||||
"413": {
|
||||
"$ref": "#/responses/error"
|
||||
},
|
||||
"422": {
|
||||
"$ref": "#/responses/validationError"
|
||||
},
|
||||
@ -17639,6 +17737,9 @@
|
||||
},
|
||||
"404": {
|
||||
"$ref": "#/responses/notFound"
|
||||
},
|
||||
"413": {
|
||||
"$ref": "#/responses/error"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user