mirror of
https://github.com/xiaozhou233/RiverWaterQualityMonitoring.git
synced 2026-12-05 13:05:53 +08:00
添加API文档(自动生成)
This commit is contained in:
1 parent
e7acd57bad
commit
54218c7600
1 file changed
+138
@@ -0,0 +1,138 @@
|
|||||||
|
---
|
||||||
|
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|
|
||||||
|
|
||||||
|
### 返回数据结构
|
||||||
|
|
||||||
|
# 数据模型
|
||||||
|
|
||||||
Reference in new issue
Block a user