首页
指南
云豆系统
API
文章
首页
指南
云豆系统
API
文章
  • API

    • API 文档
    • 认证接口
    • 文档接口

文档接口

获取权限列表

GET /api/docs/permissions

请求头:

Authorization: Bearer <token>

响应:

{
  "code": 200,
  "message": "success",
  "data": {
    "modules": [
      {
        "id": "guide",
        "name": "使用指南",
        "path": "/guide/",
        "permission": "read"
      },
      {
        "id": "api",
        "name": "API 文档",
        "path": "/api/",
        "permission": "read"
      }
    ]
  }
}

记录访问日志

POST /api/docs/log

请求头:

Authorization: Bearer <token>
Content-Type: application/json

请求体:

{
  "path": "/guide/getting-started",
  "title": "快速开始",
  "duration": 120
}

响应:

{
  "code": 200,
  "message": "success"
}
Prev
认证接口