This repository has been archived on 2026-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2022-10-02 17:31:05 +08:00

871 B

这里是API接口的开发文档

所有接口前缀都为/api/ 返回类型除了 export 都是JSON

接口

query

  • 参数: name
$ curl -X GET 'http://127.0.0.1/api/query/test'

返回数据

{
  "test": 0
}

query-all

  • 参数: 无
$ curl -X GET 'http://127.0.0.1/api/query-all/'

注: 如果使用Redis数据库则无法使用此API

返回数据

{
  "test": 114514,
  "test1": 1919810
}

query-theme

  • 参数: name
$ curl -X GET 'http://127.0.0.1/api/query-theme/lewd'
  • 注:返回的base64文本开头没有添加data:image/gif;base64,清手动添加

返回数据

[
  [
    0,
    "base64...",
    45,
    100
  ],
  ...
]

export

  • 参数: 无
$ curl -X GET 'http://127.0.0.1/api/export/'

此接口返回文件