2026-03-18 14:03:35 +08:00
|
|
|
|
openapi: 3.1.0
|
|
|
|
|
|
info:
|
|
|
|
|
|
title: BAI Management API
|
2026-03-24 10:36:19 +08:00
|
|
|
|
description: 精简后的后端 API,仅保留健康检查接口
|
2026-03-18 14:03:35 +08:00
|
|
|
|
version: 1.0.0
|
|
|
|
|
|
servers:
|
2026-03-20 18:32:58 +08:00
|
|
|
|
- url: https://bai-api.blv-oa.com
|
|
|
|
|
|
description: BAI-api生产环境
|
2026-03-18 14:03:35 +08:00
|
|
|
|
- url: http://localhost:3000
|
2026-03-20 18:32:58 +08:00
|
|
|
|
description: BAI-api本地开发环境
|
|
|
|
|
|
tags:
|
|
|
|
|
|
- name: 系统
|
|
|
|
|
|
description: 基础健康检查接口
|
|
|
|
|
|
components:
|
|
|
|
|
|
schemas:
|
|
|
|
|
|
ApiResponse:
|
|
|
|
|
|
type: object
|
|
|
|
|
|
required: [code, msg, data]
|
|
|
|
|
|
properties:
|
|
|
|
|
|
code:
|
|
|
|
|
|
type: integer
|
|
|
|
|
|
example: 200
|
|
|
|
|
|
msg:
|
|
|
|
|
|
type: string
|
|
|
|
|
|
example: 操作成功
|
|
|
|
|
|
data:
|
|
|
|
|
|
type: object
|
|
|
|
|
|
additionalProperties: true
|
|
|
|
|
|
HealthData:
|
|
|
|
|
|
type: object
|
|
|
|
|
|
properties:
|
|
|
|
|
|
status:
|
|
|
|
|
|
type: string
|
|
|
|
|
|
example: healthy
|
|
|
|
|
|
timestamp:
|
|
|
|
|
|
type: string
|
|
|
|
|
|
format: date-time
|
2026-03-18 14:03:35 +08:00
|
|
|
|
paths:
|
2026-03-20 18:32:58 +08:00
|
|
|
|
/api/health:
|
|
|
|
|
|
post:
|
|
|
|
|
|
tags: [系统]
|
|
|
|
|
|
summary: 健康检查
|
|
|
|
|
|
description: 检查服务是否正常运行
|
2026-03-18 14:03:35 +08:00
|
|
|
|
responses:
|
|
|
|
|
|
'200':
|
2026-03-20 18:32:58 +08:00
|
|
|
|
description: 服务状态正常
|
2026-03-18 14:03:35 +08:00
|
|
|
|
content:
|
|
|
|
|
|
application/json:
|
|
|
|
|
|
schema:
|
2026-03-20 18:32:58 +08:00
|
|
|
|
allOf:
|
|
|
|
|
|
- $ref: '#/components/schemas/ApiResponse'
|
|
|
|
|
|
- type: object
|
|
|
|
|
|
properties:
|
|
|
|
|
|
data:
|
|
|
|
|
|
$ref: '#/components/schemas/HealthData'
|
2026-03-24 10:36:19 +08:00
|
|
|
|
|
2026-03-20 18:32:58 +08:00
|
|
|
|
properties:
|