Commit f771f1df by Leo Zheng

编写 README.md

parent b73ae1c6
# 寿州古城数据接口 # 寿州古城数据接口
[中文](#中文) [English](#English) [中文](#中文) [English](#english)
# 中文 # 中文
## 端点:`/szgc/getdata` ## 端点:`/szgc/getdata`
## 参数: ## 参数:
...@@ -24,10 +24,52 @@ ...@@ -24,10 +24,52 @@
- getEventSourceCount - getEventSourceCount
- getGridEventCount - getGridEventCount
- getEventProcessingTime - getEventProcessingTime
- `date`: 要检索数据的日期。例子: `2023-05-03`
- `sight`: 景点名称。例子: `八公山森林公园`
- `year`:要检索数据的年份。例子:`2023`
## 示例:
```http://localhost:30016/getdata?content=sightVisitorFlowByDay&date=2023-05-03&sight=八公山森林公园```
## 运行服务器
1. 克隆仓库
2. 在根目录运行:```npm install```
3. 在VSCode编译器里按F5开始运行服务器
# English
## Endpoint: /szgc/getdata
## parameters:
- `content`:
- Left Side API:
- sightVisitorFlowByDay
- gateStatus
- sightVisitorFlowPerHour
- guchengLoad
- totalVisitorFlow
- totalVisitorFlowByDay
- Middle API:
- currentEventStrategy
- totalEventCount
- allEvents
- Right Side API:
- getEventCountByYear
- getEventTimeDistribution
- getEventMonthDistribution
- getEventCategoryCount
- getEventSubCategoryCount
- getEventSourceCount
- getGridEventCount
- getEventProcessingTime
- `date`: The date you are searching. E.g. `2023-05-03`
- `sight`: The name of the sight. E.g. `八公山森林公园`
- `year`:The year you are searching. E.g. `2023`
## Example Request:
- Left Side:
```http://localhost:30016/getdata?content=sightVisitorFlowByDay&date=2023-05-03&sight=八公山森林公园```
- Middle: ```http://localhost:30016/getdata?content=currentEventStrategy&date=2023-05-03```
- Right Side: ```http://localhost:30016/getdata?content=getEventCategoryCount&year=2024```
## How to Run:
1. Clone the Repository (```git clone http://123.207.147.179:8888/chenjinjing/shouzhouServer.git```)
2. In the root directory, run ```npm install```
3. Using VScode IDE, press F5 to start the server.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment