📂
apisix-dashboard
  • 概述
  • FAQ
  • 更新日志
  • 部署
    • 源码
    • Docker
      • 手动构建
      • DockerHub
    • RPM
  • 指南
    • Route
      • 概述
      • 路由列表
      • 创建路由
      • 编辑路由
      • 删除路由
    • Upstream
      • 概述
      • 上游列表
      • 创建上游
      • 编辑上游
      • 删除上游
    • Service
      • 概述
      • 服务列表
      • 创建服务
      • 编辑服务
      • 删除服务
    • Consumer
      • 概述
      • 应用列表
      • 创建应用
      • 编辑应用
      • 删除应用
    • SSL
      • SSL 列表
      • 创建 SSL
      • 编辑 SSL
      • 删除 SSL
    • 全局插件
      • 插件列表
      • 配置插件
  • 最佳实践
    • API 全生命周期
      • API 版本管理
      • API 在线调试
      • API 上下线
      • API 分组管理
  • 附录
    • 版本兼容
    • 疑难排查
Powered by GitBook
On this page

Was this helpful?

FAQ

Previous概述Next更新日志

Last updated 4 years ago

Was this helpful?

1. Vue.js version of the Dashboard

If you need a Vue.js build of the Apache APISIX Dashboard 1.0, use the .

What are the differences between Dashboard version 2.0 and version 1.5?

The 2.0 version of the dashboard removed MySQL from and will operate directly on etcd.

3. Etcd compatibility issues

If you are using Apache APISIX below v2.0, be aware that the data from the etcd v2 API is with the data from the v3 API. Apache APISIX Dashboard v2.0 and above uses the etcd v3 API, and apisix 1.5 and below uses the etcd v2 API.

4. After modifying the plugin schema or creating a custom plugin in Apache APISIX, why can't I find it on the dashboard?

Since the Dashboard caches the jsonschema data of the plugins in Apache APISIX, you need to synchronize the data in the Dashboard after you create your custom plugins in Apache APISIX, which currently only supports manual operation, this issue will be optimized in the following versions. Please follow the following guide.

  1. Install and zip.

  2. Execute the following commands.

# `$version` is the version number of Apache APISIX, e.g. master or 2.1.
$ api/build-tools/schema-sync.sh $version

If you have a custom plugin, make sure it is in the apisix directory and use the following command.

$ api/build-tools/schema-sync.sh /path/to/apisix

# e.g
$ api/build-tools/schema-sync.sh /usr/local/apisix

5. How to write API documentation

  1. Use the go-swagger tool to generate Swagger 2.0 documents.

$ swagger generate spec -o ./docs/api/api.yaml --scan-models
  1. Use the swagger-markdown tool to convert Swagger 2.0 documents into markdown documents.

$ swagger-markdown -i ./docs/api/api.yaml

After the command finishes executing, if you are using a binary manager-api that has already been built, you will need to manually copy api/conf/schema.json to the conf directory under the Dashboard working directory. where working directory refers to the conf directory under this is the output directory, or the directory with the modified name, that is generated in the root directory after the build is complete.

We use to generate Swagger 2.0 documents, and then convert them to markdown format so that they can be viewed directly in the github repository. Specific steps are as follows:

Write comments according to . For details, please refer to the existing example api/internal/handler/route/route.go in this project.

master-vue branch
version 1.5
not compatible
Lua
document
go-swagger
Specification