mirror of
https://gitea.com/gitea/docs.git
synced 2026-11-09 03:20:34 +00:00
Update the latest api documents (#641)
Automated update of static/swagger-latest.json and static/openapi3-latest.json from the gitea main branch, opened by the "update api spec files" scheduled workflow. <!-- cloudflare-preview --> Preview: https://pr-641.docs-gitea-com.pages.dev Reviewed-on: https://gitea.com/gitea/docs/pulls/641 Reviewed-by: Lunny Xiao <[email protected]> Co-authored-by: Gitea Bot <[email protected]>
This commit is contained in:
1 parent
878c885050
commit
6779b1d6d8
2 files changed
+64
-249
No files matched your search
+33
-129
@@ -1375,19 +1375,6 @@
|
||||
},
|
||||
"description": "StopWatchList"
|
||||
},
|
||||
"StringSlice": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"type": "array"
|
||||
}
|
||||
}
|
||||
},
|
||||
"description": "StringSlice"
|
||||
},
|
||||
"Tag": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
@@ -3802,6 +3789,7 @@
|
||||
"x-go-name": "EnableForcePush"
|
||||
},
|
||||
"enable_force_push_allowlist": {
|
||||
"description": "EnableForcePushAllowlist only takes effect when enable_force_push is true",
|
||||
"type": "boolean",
|
||||
"x-go-name": "EnableForcePushAllowlist"
|
||||
},
|
||||
@@ -4589,6 +4577,9 @@
|
||||
"x-go-name": "Path"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"path"
|
||||
],
|
||||
"type": "object",
|
||||
"x-go-package": "gitea.dev/modules/structs"
|
||||
},
|
||||
@@ -4673,6 +4664,14 @@
|
||||
"type": "boolean",
|
||||
"x-go-name": "IsDraft"
|
||||
},
|
||||
"make_latest": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/MakeLatest"
|
||||
}
|
||||
],
|
||||
"description": "\"true\" sets the release as the latest, \"false\" keeps the current latest, \"legacy\" returns to the newest stable release by date. If omitted, a newly published release becomes the latest only if it is the newest by date"
|
||||
},
|
||||
"name": {
|
||||
"description": "The display title of the release",
|
||||
"type": "string",
|
||||
@@ -5931,6 +5930,14 @@
|
||||
"type": "boolean",
|
||||
"x-go-name": "IsDraft"
|
||||
},
|
||||
"make_latest": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/components/schemas/MakeLatest"
|
||||
}
|
||||
],
|
||||
"description": "\"true\" sets the release as the latest, \"false\" keeps the current latest, \"legacy\" returns to the newest stable release by date. If omitted, a newly published release becomes the latest only if it is the newest by date"
|
||||
},
|
||||
"name": {
|
||||
"description": "The new display title of the release",
|
||||
"type": "string",
|
||||
@@ -7759,6 +7766,14 @@
|
||||
"type": "object",
|
||||
"x-go-package": "gitea.dev/modules/structs"
|
||||
},
|
||||
"MakeLatest": {
|
||||
"enum": [
|
||||
"true",
|
||||
"false",
|
||||
"legacy"
|
||||
],
|
||||
"type": "string"
|
||||
},
|
||||
"MarkdownOption": {
|
||||
"description": "MarkdownOption markdown options",
|
||||
"properties": {
|
||||
@@ -11986,6 +12001,7 @@
|
||||
"schema": {
|
||||
"enum": [
|
||||
"alpine",
|
||||
"arch",
|
||||
"cargo",
|
||||
"chef",
|
||||
"composer",
|
||||
@@ -12006,6 +12022,7 @@
|
||||
"rubygems",
|
||||
"swift",
|
||||
"terraform",
|
||||
"terraform-module",
|
||||
"vagrant"
|
||||
],
|
||||
"type": "string"
|
||||
@@ -12034,121 +12051,6 @@
|
||||
]
|
||||
}
|
||||
},
|
||||
"/admin/unadopted": {
|
||||
"get": {
|
||||
"operationId": "adminUnadoptedList",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "page number of results to return (1-based)",
|
||||
"in": "query",
|
||||
"name": "page",
|
||||
"schema": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "page size of results",
|
||||
"in": "query",
|
||||
"name": "limit",
|
||||
"schema": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "glob pattern of repositories to search for, in the form owner or owner/repo",
|
||||
"in": "query",
|
||||
"name": "query",
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"$ref": "#/components/responses/StringSlice"
|
||||
},
|
||||
"default": {
|
||||
"$ref": "#/components/responses/error"
|
||||
}
|
||||
},
|
||||
"summary": "List unadopted repositories",
|
||||
"tags": [
|
||||
"admin"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/admin/unadopted/{owner}/{repo}": {
|
||||
"delete": {
|
||||
"operationId": "adminDeleteUnadoptedRepository",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "owner of the repo",
|
||||
"in": "path",
|
||||
"name": "owner",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "name of the repo",
|
||||
"in": "path",
|
||||
"name": "repo",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"204": {
|
||||
"$ref": "#/components/responses/empty"
|
||||
},
|
||||
"default": {
|
||||
"$ref": "#/components/responses/error"
|
||||
}
|
||||
},
|
||||
"summary": "Delete unadopted files",
|
||||
"tags": [
|
||||
"admin"
|
||||
]
|
||||
},
|
||||
"post": {
|
||||
"operationId": "adminAdoptRepository",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "owner of the repo",
|
||||
"in": "path",
|
||||
"name": "owner",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
{
|
||||
"description": "name of the repo",
|
||||
"in": "path",
|
||||
"name": "repo",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"204": {
|
||||
"$ref": "#/components/responses/empty"
|
||||
},
|
||||
"default": {
|
||||
"$ref": "#/components/responses/error"
|
||||
}
|
||||
},
|
||||
"summary": "Adopt unadopted files as a repository",
|
||||
"tags": [
|
||||
"admin"
|
||||
]
|
||||
}
|
||||
},
|
||||
"/admin/users": {
|
||||
"get": {
|
||||
"operationId": "adminSearchUsers",
|
||||
@@ -16270,6 +16172,7 @@
|
||||
"schema": {
|
||||
"enum": [
|
||||
"alpine",
|
||||
"arch",
|
||||
"cargo",
|
||||
"chef",
|
||||
"composer",
|
||||
@@ -16290,6 +16193,7 @@
|
||||
"rubygems",
|
||||
"swift",
|
||||
"terraform",
|
||||
"terraform-module",
|
||||
"vagrant"
|
||||
],
|
||||
"type": "string"
|
||||
@@ -30726,7 +30630,7 @@
|
||||
"$ref": "#/components/responses/error"
|
||||
}
|
||||
},
|
||||
"summary": "Gets the most recent non-prerelease, non-draft release of a repository, sorted by created_at",
|
||||
"summary": "Gets the release set as latest, else the most recent non-prerelease, non-draft release of a repository by created_at",
|
||||
"tags": [
|
||||
"repository"
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user