Skip to main content
Version: 2.6

FAQ

1. Vue.js version of the Dashboard#

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

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

The 2.0 version of the dashboard removed MySQL from version 1.5 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 not compatible 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. Please follow the following guide.

  1. Confirm that your APISIX is running and has enabled control API (enabled by default and only runs local access) Refer to the beginning in: https://apisix.apache.org/docs/apisix/control-api

  2. Execute the following commands to export jsonchema on your APISIX server (if it is configured for non-local access, it does not need to be executed on your APISIX server, and the access IP and port should be modified accordingly)

curl 127.0.0.1:9090/v1/schema > schema.json

Refer to https://apisix.apache.org/docs/apisix/control-api#get-v1schema

  1. Copy the exported schema.json to the conf directory in the Dashboard working directory (About working directory, please refer to https://github.com/apache/apisix-dashboard/blob/master/docs/en/latest/deploy.md#working-directory)

  2. Restart the Manager API

5. How to write API documentation#

We use go-swagger 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:

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

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

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