uddate: 更新api文档

This commit is contained in:
RTAkland
2022-12-29 15:46:34 +08:00
parent 88a0b1975f
commit fdb17c8831
1 file changed
+5 -4
+5 -4
View File
@@ -2,9 +2,10 @@
# config.py
* 文件内的`Config`类的`database`属性数据库类型, 已经支持了 `SQLite` `MySQL`
* 文件内的`Config`类的`database`属性数据库类型, 已经支持了 `SQLite` `MySQL` `Deta Base`
* 使用sqlite, 直接填写为`sqlite3` 即默认
* 使用mysql, 需要按照以下格式填写: user:pwd@host:port/db
* 使用Deta Base 直接填写`deta`
# 使用
@@ -20,7 +21,7 @@
* `theme`
> theme: `blacked` `lewd` `lisu` `moebooru` `asoul`
> theme: `blacked` `lewd` `lisu` `moebooru` `asoul` `hmoebooru` `hgelbooru`
# 单元测试
@@ -38,7 +39,7 @@
* 参数: `name`
```bash
$ curl -X GET 'http://127.0.0.1/api/query/test'
$ curl -X GET 'http://127.0.0.1/api/query/times/test'
```
### 返回数据
@@ -59,7 +60,7 @@ $ curl -X GET 'http://127.0.0.1/api/query/test'
* 参数: 无
```bash
$ curl -X GET 'http://127.0.0.1/api/query/all'
$ curl -X GET 'http://127.0.0.1/api/query/alldata'
```
### 返回数据