From 5301efc70423340f7898b9da08274104fa38e96f Mon Sep 17 00:00:00 2001 From: Gitea Bot Date: Sat, 22 Aug 2026 16:46:33 +0000 Subject: [PATCH] Update the latest api documents (#522) 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. Reviewed-on: https://gitea.com/gitea/docs/pulls/522 Reviewed-by: Lunny Xiao Co-authored-by: Gitea Bot --- static/openapi3-latest.json | 75 +++++++++++++++++++++++++++++++++++++ static/swagger-latest.json | 70 ++++++++++++++++++++++++++++++++++ 2 files changed, 145 insertions(+) diff --git a/static/openapi3-latest.json b/static/openapi3-latest.json index caf2ca26..1feab8b1 100644 --- a/static/openapi3-latest.json +++ b/static/openapi3-latest.json @@ -11685,6 +11685,81 @@ ] } }, + "/admin/packages": { + "get": { + "operationId": "adminListPackages", + "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": "package type filter", + "in": "query", + "name": "type", + "schema": { + "enum": [ + "alpine", + "cargo", + "chef", + "composer", + "conan", + "conda", + "container", + "cran", + "debian", + "generic", + "go", + "helm", + "maven", + "npm", + "nuget", + "pub", + "pypi", + "rpm", + "rubygems", + "swift", + "terraform", + "vagrant" + ], + "type": "string" + } + }, + { + "description": "name filter", + "in": "query", + "name": "q", + "schema": { + "type": "string" + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/PackageList" + }, + "403": { + "$ref": "#/components/responses/forbidden" + } + }, + "summary": "List all packages", + "tags": [ + "admin" + ] + } + }, "/admin/unadopted": { "get": { "operationId": "adminUnadoptedList", diff --git a/static/swagger-latest.json b/static/swagger-latest.json index efc648ca..51aa4fb4 100644 --- a/static/swagger-latest.json +++ b/static/swagger-latest.json @@ -628,6 +628,76 @@ } } }, + "/admin/packages": { + "get": { + "produces": [ + "application/json" + ], + "tags": [ + "admin" + ], + "summary": "List all packages", + "operationId": "adminListPackages", + "parameters": [ + { + "type": "integer", + "description": "page number of results to return (1-based)", + "name": "page", + "in": "query" + }, + { + "type": "integer", + "description": "page size of results", + "name": "limit", + "in": "query" + }, + { + "enum": [ + "alpine", + "cargo", + "chef", + "composer", + "conan", + "conda", + "container", + "cran", + "debian", + "generic", + "go", + "helm", + "maven", + "npm", + "nuget", + "pub", + "pypi", + "rpm", + "rubygems", + "swift", + "terraform", + "vagrant" + ], + "type": "string", + "description": "package type filter", + "name": "type", + "in": "query" + }, + { + "type": "string", + "description": "name filter", + "name": "q", + "in": "query" + } + ], + "responses": { + "200": { + "$ref": "#/responses/PackageList" + }, + "403": { + "$ref": "#/responses/forbidden" + } + } + } + }, "/admin/unadopted": { "get": { "produces": [