docs(api): update swagger docs with field descriptions and operationId rename

- Add minimum: 0 validation to LogRetention properties (days, keep_size, last)
- Add "interned" descriptions to fstype, path, and name fields
- Rename operationId and x-id from "routes" to "list" for GET /route endpoint
This commit is contained in:
yusing
2026-02-22 19:54:56 +08:00
parent 4e5ded13fb
commit f6a82a3b7c
3 changed files with 18 additions and 6 deletions

View File

@@ -767,10 +767,13 @@ definitions:
LogRetention:
properties:
days:
minimum: 0
type: integer
keep_size:
minimum: 0
type: integer
last:
minimum: 0
type: integer
type: object
MetricsPeriod:
@@ -1690,8 +1693,10 @@ definitions:
free:
type: integer
fstype:
description: interned
type: string
path:
description: interned
type: string
total:
type: number
@@ -1832,12 +1837,12 @@ definitions:
type: string
kernel_version:
type: string
load_avg_5m:
type: string
load_avg_15m:
type: string
load_avg_1m:
type: string
load_avg_5m:
type: string
mem_pct:
type: string
mem_total:
@@ -1886,6 +1891,7 @@ definitions:
high:
type: number
name:
description: interned
type: string
temperature:
type: number
@@ -3932,7 +3938,7 @@ paths:
tags:
- route
- websocket
x-id: routes
x-id: list
/route/playground:
post:
consumes: