diff --git a/api-server/api.md b/api-server/api.md deleted file mode 100644 index 687ccd4..0000000 --- a/api-server/api.md +++ /dev/null @@ -1,138 +0,0 @@ ---- -title: 默认模块 -language_tabs: - - shell: Shell - - http: HTTP - - javascript: JavaScript - - ruby: Ruby - - python: Python - - php: PHP - - java: Java - - go: Go -toc_footers: [] -includes: [] -search: true -code_clipboard: true -highlight_theme: darkula -headingLevel: 2 -generator: "@tarslib/widdershins v4.0.30" - ---- - -# 默认模块 - -Base URLs: - -# Authentication - -# Default - -## GET 上传数据 - -GET /data/upload - -### 请求参数 - -|名称|位置|类型|必选|说明| -|---|---|---|---|---| -|token|query|string| 否 |none| -|ph|query|number| 否 |none| -|tds|query|number| 否 |none| -|turbidity|query|number| 否 |none| - -> 返回示例 - -> 200 Response - -```json -{"status":"ok","message":"data_received"} -``` - -### 返回结果 - -|状态码|状态码含义|说明|数据模型| -|---|---|---|---| -|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline| - -### 返回数据结构 - -## GET 获取全部数据 - -GET /data/all - -### 请求参数 - -|名称|位置|类型|必选|说明| -|---|---|---|---|---| -|token|query|string| 否 |none| - -> 返回示例 - -> 200 Response - -```json -{"status":"ok","message":"data_received"} -``` - -### 返回结果 - -|状态码|状态码含义|说明|数据模型| -|---|---|---|---| -|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline| - -### 返回数据结构 - -## GET 获取最新数据 - -GET /data/last - -### 请求参数 - -|名称|位置|类型|必选|说明| -|---|---|---|---|---| -|token|query|string| 否 |none| - -> 返回示例 - -> 200 Response - -```json -{"status":"ok","message":"data_received"} -``` - -### 返回结果 - -|状态码|状态码含义|说明|数据模型| -|---|---|---|---| -|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline| - -### 返回数据结构 - -## GET 获取最新数据评分 - -GET /data/score - -### 请求参数 - -|名称|位置|类型|必选|说明| -|---|---|---|---|---| -|token|query|string| 否 |none| - -> 返回示例 - -> 200 Response - -```json -{"status":"ok","message":"data_received"} -``` - -### 返回结果 - -|状态码|状态码含义|说明|数据模型| -|---|---|---|---| -|200|[OK](https://tools.ietf.org/html/rfc7231#section-6.3.1)|none|Inline| - -### 返回数据结构 - -# 数据模型 -