sync: 鍚屾灞€鍩熺綉鏈€鏂颁唬鐮?(source master @ b69568e4)
This commit is contained in:
1 parent
4f7f07504a
commit
8bc8b0e082
1651 files changed
+278599
-11416
No files matched your search
@@ -0,0 +1,26 @@
|
||||
# 商业情报监测接口模拟服务
|
||||
|
||||
该服务只使用 Python 标准库,用于在真实监测接口尚未部署时联调自定义技能。
|
||||
|
||||
启动:
|
||||
|
||||
```powershell
|
||||
./start-mock.ps1
|
||||
```
|
||||
|
||||
为当前 PowerShell 会话切换技能到模拟服务:
|
||||
|
||||
```powershell
|
||||
$env:MONITOR_API_BASE_URL = "http://127.0.0.1:18080/consumer"
|
||||
$env:MONITOR_AUTHORIZATION = "admin"
|
||||
```
|
||||
|
||||
模拟路由:
|
||||
|
||||
- `GET /consumer/monitor/task/{id}`
|
||||
- `GET /consumer/monitor/task/calendar`
|
||||
- `GET /consumer/monitor/task/eventMonitorByTime`
|
||||
- `POST /consumer/monitor/task/entites`
|
||||
- `GET /consumer/monitor/task/realNetwork/list/{taskId}`
|
||||
|
||||
所有请求必须携带 `Authorization: admin`。任务 `3` 默认返回 T 方向数据。完整任务名作为关键词时会先返回空数组;技能移除关键词后返回数据,可用来验证逐步放宽逻辑。
|
||||
Reference in new issue
Block a user