docs(swagger): regenerate for GET /api/aliases

Adds the /api/aliases path and AliasInfo schema generated from the
ListAliasesEndpoint annotation.

Assisted-by: Claude:claude-opus-4-8 [Claude Code]
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto
2026-06-20 10:33:30 +00:00
parent e956345459
commit ec9c5cde65
3 changed files with 79 additions and 0 deletions

View File

@@ -500,6 +500,25 @@ const docTemplate = `{
}
}
},
"/api/aliases": {
"get": {
"tags": [
"models"
],
"summary": "List model aliases",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/localai.AliasInfo"
}
}
}
}
}
},
"/api/backend-logs": {
"get": {
"description": "Returns a sorted list of model IDs that have captured backend process output",
@@ -3486,6 +3505,17 @@ const docTemplate = `{
}
}
},
"localai.AliasInfo": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"target": {
"type": "string"
}
}
},
"localai.BrandingResponse": {
"type": "object",
"properties": {

View File

@@ -497,6 +497,25 @@
}
}
},
"/api/aliases": {
"get": {
"tags": [
"models"
],
"summary": "List model aliases",
"responses": {
"200": {
"description": "OK",
"schema": {
"type": "array",
"items": {
"$ref": "#/definitions/localai.AliasInfo"
}
}
}
}
}
},
"/api/backend-logs": {
"get": {
"description": "Returns a sorted list of model IDs that have captured backend process output",
@@ -3483,6 +3502,17 @@
}
}
},
"localai.AliasInfo": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"target": {
"type": "string"
}
}
},
"localai.BrandingResponse": {
"type": "object",
"properties": {

View File

@@ -281,6 +281,13 @@ definitions:
type: string
type: array
type: object
localai.AliasInfo:
properties:
name:
type: string
target:
type: string
type: object
localai.BrandingResponse:
properties:
favicon_url:
@@ -2780,6 +2787,18 @@ paths:
summary: Execute an agent task by name
tags:
- agent-jobs
/api/aliases:
get:
responses:
"200":
description: OK
schema:
items:
$ref: '#/definitions/localai.AliasInfo'
type: array
summary: List model aliases
tags:
- models
/api/backend-logs:
get:
description: Returns a sorted list of model IDs that have captured backend process