feat(swagger): update swagger (#9329)

Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: mudler <2420543+mudler@users.noreply.github.com>
This commit is contained in:
LocalAI [bot]
2026-04-13 09:42:36 +02:00
committed by GitHub
parent ea32b8953f
commit 0f90d17aac
3 changed files with 227 additions and 0 deletions

View File

@@ -1168,6 +1168,69 @@ const docTemplate = `{
}
}
},
"/backends/upgrade/{name}": {
"post": {
"tags": [
"backends"
],
"summary": "Upgrade a backend",
"parameters": [
{
"type": "string",
"description": "Backend name",
"name": "name",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "Response",
"schema": {
"$ref": "#/definitions/schema.BackendResponse"
}
}
}
}
},
"/backends/upgrades": {
"get": {
"tags": [
"backends"
],
"summary": "Get available backend upgrades",
"responses": {
"200": {
"description": "Response",
"schema": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/gallery.UpgradeInfo"
}
}
}
}
}
},
"/backends/upgrades/check": {
"post": {
"tags": [
"backends"
],
"summary": "Force backend upgrade check",
"responses": {
"200": {
"description": "Response",
"schema": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/gallery.UpgradeInfo"
}
}
}
}
}
},
"/metrics": {
"get": {
"produces": [
@@ -2258,6 +2321,9 @@ const docTemplate = `{
"items": {
"type": "string"
}
},
"version": {
"type": "string"
}
}
},
@@ -2320,6 +2386,26 @@ const docTemplate = `{
}
}
},
"gallery.UpgradeInfo": {
"type": "object",
"properties": {
"available_digest": {
"type": "string"
},
"available_version": {
"type": "string"
},
"backend_name": {
"type": "string"
},
"installed_digest": {
"type": "string"
},
"installed_version": {
"type": "string"
}
}
},
"galleryop.OpStatus": {
"type": "object",
"properties": {

View File

@@ -1165,6 +1165,69 @@
}
}
},
"/backends/upgrade/{name}": {
"post": {
"tags": [
"backends"
],
"summary": "Upgrade a backend",
"parameters": [
{
"type": "string",
"description": "Backend name",
"name": "name",
"in": "path",
"required": true
}
],
"responses": {
"200": {
"description": "Response",
"schema": {
"$ref": "#/definitions/schema.BackendResponse"
}
}
}
}
},
"/backends/upgrades": {
"get": {
"tags": [
"backends"
],
"summary": "Get available backend upgrades",
"responses": {
"200": {
"description": "Response",
"schema": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/gallery.UpgradeInfo"
}
}
}
}
}
},
"/backends/upgrades/check": {
"post": {
"tags": [
"backends"
],
"summary": "Force backend upgrade check",
"responses": {
"200": {
"description": "Response",
"schema": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/gallery.UpgradeInfo"
}
}
}
}
}
},
"/metrics": {
"get": {
"produces": [
@@ -2255,6 +2318,9 @@
"items": {
"type": "string"
}
},
"version": {
"type": "string"
}
}
},
@@ -2317,6 +2383,26 @@
}
}
},
"gallery.UpgradeInfo": {
"type": "object",
"properties": {
"available_digest": {
"type": "string"
},
"available_version": {
"type": "string"
},
"backend_name": {
"type": "string"
},
"installed_digest": {
"type": "string"
},
"installed_version": {
"type": "string"
}
}
},
"galleryop.OpStatus": {
"type": "object",
"properties": {

View File

@@ -111,6 +111,8 @@ definitions:
items:
type: string
type: array
version:
type: string
type: object
gallery.Metadata:
properties:
@@ -155,6 +157,19 @@ definitions:
type: string
type: array
type: object
gallery.UpgradeInfo:
properties:
available_digest:
type: string
available_version:
type: string
backend_name:
type: string
installed_digest:
type: string
installed_version:
type: string
type: object
galleryop.OpStatus:
properties:
cancellable:
@@ -2466,6 +2481,46 @@ paths:
summary: Returns the job status
tags:
- backends
/backends/upgrade/{name}:
post:
parameters:
- description: Backend name
in: path
name: name
required: true
type: string
responses:
"200":
description: Response
schema:
$ref: '#/definitions/schema.BackendResponse'
summary: Upgrade a backend
tags:
- backends
/backends/upgrades:
get:
responses:
"200":
description: Response
schema:
additionalProperties:
$ref: '#/definitions/gallery.UpgradeInfo'
type: object
summary: Get available backend upgrades
tags:
- backends
/backends/upgrades/check:
post:
responses:
"200":
description: Response
schema:
additionalProperties:
$ref: '#/definitions/gallery.UpgradeInfo'
type: object
summary: Force backend upgrade check
tags:
- backends
/metrics:
get:
produces: