Files
profilarr/docs/api/v1/paths/system.yaml
2026-03-08 20:46:01 +10:30

88 lines
2.5 KiB
YAML

health:
get:
operationId: getHealth
summary: Health check (public)
description: |
Public endpoint for uptime monitors. Returns only the overall status and
timestamp — no version, uptime, or component details.
Status values:
- `healthy`: All components functioning normally
- `degraded`: Core functionality works but some components have issues
- `unhealthy`: Core functionality is broken
tags:
- System
security: []
responses:
'200':
description: Service is healthy or degraded
content:
application/json:
schema:
$ref: '../schemas/health.yaml#/HealthCheckResponse'
'503':
description: Service is unhealthy
content:
application/json:
schema:
$ref: '../schemas/health.yaml#/HealthCheckResponse'
health_diagnostics:
get:
operationId: getHealthDiagnostics
summary: Health diagnostics (authenticated)
description: |
Detailed health diagnostics including version, uptime, and per-component
status. Requires authentication (session or API key).
Use `?verbose=true` for additional counts, sizes, and timestamps.
tags:
- System
parameters:
- name: verbose
in: query
description: Include extra detail per component (counts, sizes, timestamps)
schema:
type: boolean
default: false
responses:
'200':
description: Diagnostics response (healthy or degraded)
content:
application/json:
schema:
$ref: '../schemas/health.yaml#/HealthDiagnosticsResponse'
'401':
description: Not authenticated
content:
application/json:
schema:
type: object
required:
- error
properties:
error:
type: string
example: Unauthorized
'503':
description: Service is unhealthy
content:
application/json:
schema:
$ref: '../schemas/health.yaml#/HealthDiagnosticsResponse'
openapi:
get:
operationId: getOpenApiSpec
summary: OpenAPI specification
description: Returns the OpenAPI specification for this API
tags:
- System
responses:
'200':
description: OpenAPI specification
content:
application/json:
schema:
type: object