http_api_v1.json 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583
  1. {
  2. "version": "v1",
  3. "frozen_at": "2026-09-29",
  4. "source": "实测探活(重构前行为)",
  5. "bases": {
  6. "gateway": "http://127.0.0.1:28084",
  7. "detail": "http://127.0.0.1:18033",
  8. "algorithm": "http://127.0.0.1:18050"
  9. },
  10. "note": "前端 Vue / 后端 Java / 算法 FastAPI 三条线都以本契约为对拍基准;值随数据变不比,比方法/状态/顶层键。 端点若带 `json_keys_any`,表示\"响应形状有两种合法态\"(如异步构建态),复核时任一键集全中即通过。",
  11. "endpoints": [
  12. {
  13. "kind": "detail_api",
  14. "path": "/api/ask",
  15. "method": "POST",
  16. "status": 200,
  17. "ctype": "application/json",
  18. "json_keys": [
  19. "err"
  20. ],
  21. "bytes_at_least": 23
  22. },
  23. {
  24. "kind": "detail_api",
  25. "path": "/api/ask_models",
  26. "method": "GET",
  27. "status": 200,
  28. "ctype": "application/json",
  29. "json_keys": [
  30. "models"
  31. ],
  32. "bytes_at_least": 137
  33. },
  34. {
  35. "kind": "detail_api",
  36. "path": "/api/ask_status",
  37. "method": "GET",
  38. "status": 200,
  39. "ctype": "application/json",
  40. "json_keys": [
  41. "answer",
  42. "elapsed",
  43. "err",
  44. "lang",
  45. "model",
  46. "q",
  47. "review",
  48. "state",
  49. "step",
  50. "steps",
  51. "t0",
  52. "verify",
  53. "xrev"
  54. ],
  55. "bytes_at_least": 173
  56. },
  57. {
  58. "kind": "detail_api",
  59. "path": "/api/channels",
  60. "method": "GET",
  61. "status": 200,
  62. "ctype": "application/json",
  63. "json_keys": [
  64. "A.功率",
  65. "A.状态",
  66. "A.转速",
  67. "A.风况",
  68. "B.偏航",
  69. "B.冷却执行器",
  70. "B.变桨",
  71. "B.润滑液压",
  72. "B.温度NBM",
  73. "B.结构"
  74. ],
  75. "bytes_at_least": 512
  76. },
  77. {
  78. "kind": "detail_api",
  79. "path": "/api/curves",
  80. "method": "GET",
  81. "status": 200,
  82. "ctype": "application/json",
  83. "bytes_at_least": 512,
  84. "json_keys_any": [
  85. [
  86. "figs",
  87. "note",
  88. "physics"
  89. ],
  90. [
  91. "building",
  92. "months",
  93. "note",
  94. "span",
  95. "win"
  96. ]
  97. ],
  98. "note": "产物仓已在位 → figs/physics;正在后台构建 → building/months/span/win(都算正常)"
  99. },
  100. {
  101. "kind": "detail_api",
  102. "path": "/api/dq_findings",
  103. "method": "GET",
  104. "status": 200,
  105. "ctype": "application/json",
  106. "json_keys": [
  107. "n",
  108. "note",
  109. "rows"
  110. ],
  111. "bytes_at_least": 420
  112. },
  113. {
  114. "kind": "detail_api",
  115. "path": "/api/facts",
  116. "method": "GET",
  117. "status": 200,
  118. "ctype": "application/json",
  119. "json_keys": [
  120. "cards",
  121. "contract_sha256",
  122. "contract_version",
  123. "generated"
  124. ],
  125. "bytes_at_least": 512
  126. },
  127. {
  128. "kind": "detail_api",
  129. "path": "/api/fleet",
  130. "method": "GET",
  131. "status": 200,
  132. "ctype": "application/json",
  133. "json_keys": [
  134. "all_months",
  135. "control",
  136. "faults",
  137. "fus",
  138. "kpi",
  139. "m8",
  140. "m9",
  141. "m9_pending",
  142. "months",
  143. "note",
  144. "rel",
  145. "sysdist",
  146. "sysmx_pending",
  147. "sysmx_span",
  148. "systems",
  149. "watch",
  150. "win",
  151. "win_pending"
  152. ],
  153. "bytes_at_least": 512
  154. },
  155. {
  156. "kind": "detail_api",
  157. "path": "/api/maint_framework",
  158. "method": "GET",
  159. "status": 200,
  160. "ctype": "application/json",
  161. "json_keys": [
  162. "coverage",
  163. "gaps",
  164. "records",
  165. "stages",
  166. "systems",
  167. "tiers"
  168. ],
  169. "bytes_at_least": 512
  170. },
  171. {
  172. "kind": "detail_api",
  173. "path": "/api/maint_std",
  174. "method": "GET",
  175. "status": 200,
  176. "ctype": "application/json",
  177. "json_keys": [
  178. "batch",
  179. "closure",
  180. "discontinuity",
  181. "recurrence",
  182. "score"
  183. ],
  184. "bytes_at_least": 512
  185. },
  186. {
  187. "kind": "detail_api",
  188. "path": "/api/maint_survey",
  189. "method": "GET",
  190. "status": 200,
  191. "ctype": "application/json",
  192. "json_keys": [
  193. "rows"
  194. ],
  195. "bytes_at_least": 512
  196. },
  197. {
  198. "kind": "detail_api",
  199. "path": "/api/ont_chain",
  200. "method": "GET",
  201. "status": 200,
  202. "ctype": "application/json",
  203. "json_keys": [
  204. "error",
  205. "text"
  206. ],
  207. "bytes_at_least": 106
  208. },
  209. {
  210. "kind": "detail_api",
  211. "path": "/api/ont_list",
  212. "method": "GET",
  213. "status": 200,
  214. "ctype": "application/json",
  215. "json_keys": [
  216. "rows"
  217. ],
  218. "bytes_at_least": 512
  219. },
  220. {
  221. "kind": "detail_api",
  222. "path": "/api/ont_obj",
  223. "method": "GET",
  224. "status": 200,
  225. "ctype": "application/json",
  226. "json_keys": [
  227. "err",
  228. "links",
  229. "obj"
  230. ],
  231. "bytes_at_least": 39
  232. },
  233. {
  234. "kind": "detail_api",
  235. "path": "/api/reload",
  236. "method": "GET",
  237. "status": 200,
  238. "ctype": "application/json",
  239. "json_keys": [
  240. "files",
  241. "ok",
  242. "old_stamp",
  243. "stamp"
  244. ],
  245. "bytes_at_least": 87
  246. },
  247. {
  248. "kind": "detail_api",
  249. "path": "/api/rpt_export",
  250. "method": "GET",
  251. "status": 200,
  252. "ctype": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
  253. "bytes_at_least": 512
  254. },
  255. {
  256. "kind": "detail_api",
  257. "path": "/api/vibcms",
  258. "method": "GET",
  259. "status": 200,
  260. "ctype": "application/json",
  261. "json_keys": [
  262. "action",
  263. "date",
  264. "diff",
  265. "grades",
  266. "overall",
  267. "时间范围",
  268. "窗"
  269. ],
  270. "bytes_at_least": 512
  271. },
  272. {
  273. "kind": "detail_page",
  274. "path": "/v2",
  275. "method": "GET",
  276. "status": 200,
  277. "ctype": "text/html",
  278. "html_title": "观澜 · 风电数据分析与决策支持",
  279. "bytes_at_least": 512,
  280. "retired": true,
  281. "retired_reason": "前端全量 Vue + Python 业务后端(detail 服务)按用户令退役;旧页路由不再提供,替代入口 /web/(Vue 工作台)。登记于 2026-10-01。",
  282. "replaced_by": "/web/"
  283. },
  284. {
  285. "kind": "cms",
  286. "path": "/cms/api/models",
  287. "method": "GET",
  288. "status": 200,
  289. "ctype": "application/json",
  290. "json_keys": [
  291. "models",
  292. "picked"
  293. ],
  294. "bytes_at_least": 96
  295. },
  296. {
  297. "kind": "cms",
  298. "path": "/cms/api/plugins",
  299. "method": "GET",
  300. "status": 200,
  301. "ctype": "application/json",
  302. "bytes_at_least": 512
  303. },
  304. {
  305. "kind": "cms",
  306. "path": "/cms/api/run",
  307. "method": "POST",
  308. "status": 200,
  309. "ctype": "application/json",
  310. "json_keys": [
  311. "kind",
  312. "text"
  313. ],
  314. "bytes_at_least": 290
  315. },
  316. {
  317. "kind": "cms",
  318. "path": "/cms/api/views",
  319. "method": "GET",
  320. "status": 200,
  321. "ctype": "application/json",
  322. "bytes_at_least": 2
  323. },
  324. {
  325. "kind": "gateway",
  326. "path": "/",
  327. "method": "GET",
  328. "status": 200,
  329. "ctype": "text/html",
  330. "html_title": "观澜中文系统 · 详细分析",
  331. "bytes_at_least": 512
  332. },
  333. {
  334. "kind": "gateway",
  335. "path": "/algorithm",
  336. "method": "GET",
  337. "status": 200,
  338. "ctype": "application/json",
  339. "json_keys": [
  340. "endpoints",
  341. "ok",
  342. "service",
  343. "time",
  344. "version"
  345. ],
  346. "bytes_at_least": 104
  347. },
  348. {
  349. "kind": "gateway",
  350. "path": "/cms",
  351. "method": "GET",
  352. "status": 200,
  353. "ctype": "text/html",
  354. "html_title": "如东海上风电场 振动诊断 · 客户版",
  355. "bytes_at_least": 512
  356. },
  357. {
  358. "kind": "gateway",
  359. "path": "/detail",
  360. "method": "GET",
  361. "status": 200,
  362. "ctype": "text/html",
  363. "html_title": "观澜 · 风电数据分析与决策支持",
  364. "bytes_at_least": 512,
  365. "retired": true,
  366. "retired_reason": "前端全量 Vue + Python 业务后端(detail 服务)按用户令退役;旧页路由不再提供,替代入口 /web/(Vue 工作台)。登记于 2026-10-01。",
  367. "replaced_by": "/web/"
  368. },
  369. {
  370. "kind": "gateway",
  371. "path": "/sim",
  372. "method": "GET",
  373. "status": 200,
  374. "ctype": "text/html",
  375. "html_title": "4MW 机组 整机联调仿真台 · 演示",
  376. "bytes_at_least": 512
  377. },
  378. {
  379. "kind": "gateway",
  380. "path": "/sim/sys",
  381. "method": "GET",
  382. "status": 200,
  383. "ctype": "text/html",
  384. "html_title": "观澜 offshore-4-0-platform · 四系统联调",
  385. "bytes_at_least": 512
  386. },
  387. {
  388. "kind": "gateway",
  389. "path": "/viewer",
  390. "method": "GET",
  391. "status": 200,
  392. "ctype": "text/html",
  393. "html_title": "如东风机 · 三维拆解",
  394. "bytes_at_least": 512
  395. },
  396. {
  397. "kind": "algorithm",
  398. "path": "/api/availability_summary",
  399. "method": "GET",
  400. "status": 200,
  401. "ctype": "application/json",
  402. "json_keys": [
  403. "台级损失top",
  404. "损失MWh",
  405. "时长h",
  406. "时间可用率_不含调度令",
  407. "物理上限核",
  408. "零本底"
  409. ],
  410. "bytes_at_least": 475
  411. },
  412. {
  413. "kind": "algorithm",
  414. "path": "/api/curves_check",
  415. "method": "GET",
  416. "status": 200,
  417. "ctype": "application/json",
  418. "json_keys": [
  419. "Betz",
  420. "λ叶尖速比",
  421. "齿比恒等"
  422. ],
  423. "bytes_at_least": 512
  424. },
  425. {
  426. "kind": "algorithm",
  427. "path": "/api/endpoints",
  428. "method": "GET",
  429. "status": 200,
  430. "ctype": "application/json",
  431. "json_keys": [
  432. "count",
  433. "items"
  434. ],
  435. "bytes_at_least": 512
  436. },
  437. {
  438. "kind": "algorithm",
  439. "path": "/api/fusion",
  440. "method": "GET",
  441. "status": 200,
  442. "ctype": "application/json",
  443. "bytes_at_least": 512
  444. },
  445. {
  446. "kind": "algorithm",
  447. "path": "/api/handoff",
  448. "method": "GET",
  449. "status": 200,
  450. "ctype": "application/json",
  451. "json_keys": [
  452. "calibration_updates_v1",
  453. "detectability_prior",
  454. "field_actions_v1",
  455. "meta",
  456. "open_items",
  457. "per_turbine"
  458. ],
  459. "bytes_at_least": 512
  460. },
  461. {
  462. "kind": "algorithm",
  463. "path": "/api/matrix",
  464. "method": "GET",
  465. "status": 200,
  466. "ctype": "application/json",
  467. "json_keys": [
  468. "WTG01",
  469. "WTG02",
  470. "WTG03",
  471. "WTG04",
  472. "WTG05",
  473. "WTG06",
  474. "WTG07",
  475. "WTG08",
  476. "WTG09",
  477. "WTG10",
  478. "WTG11",
  479. "WTG12",
  480. "WTG13",
  481. "WTG14",
  482. "WTG15",
  483. "WTG16",
  484. "WTG17",
  485. "WTG18",
  486. "WTG19",
  487. "WTG20"
  488. ],
  489. "bytes_at_least": 512
  490. },
  491. {
  492. "kind": "algorithm",
  493. "path": "/api/pitch",
  494. "method": "GET",
  495. "status": 200,
  496. "ctype": "application/json",
  497. "bytes_at_least": 512
  498. },
  499. {
  500. "kind": "algorithm",
  501. "path": "/api/problems",
  502. "method": "GET",
  503. "status": 200,
  504. "ctype": "application/json",
  505. "json_keys": [
  506. "主控与传感网",
  507. "偏航",
  508. "发电机",
  509. "变桨",
  510. "变流器",
  511. "齿轮箱"
  512. ],
  513. "bytes_at_least": 512
  514. },
  515. {
  516. "kind": "algorithm",
  517. "path": "/api/reconcile",
  518. "method": "GET",
  519. "status": 200,
  520. "ctype": "application/json",
  521. "json_keys": [
  522. "主控与传感网",
  523. "主轴承",
  524. "发电机",
  525. "变流器",
  526. "齿轮箱"
  527. ],
  528. "bytes_at_least": 512
  529. },
  530. {
  531. "kind": "algorithm",
  532. "path": "/api/reliability",
  533. "method": "GET",
  534. "status": 200,
  535. "ctype": "application/json",
  536. "json_keys": [
  537. "口径",
  538. "外部类停机h",
  539. "总停机h",
  540. "窗",
  541. "表",
  542. "设备类停机h"
  543. ],
  544. "bytes_at_least": 512
  545. },
  546. {
  547. "kind": "algorithm",
  548. "path": "/api/systems",
  549. "method": "GET",
  550. "status": 200,
  551. "ctype": "application/json",
  552. "json_keys": [
  553. "SYSTEMS",
  554. "TEMP2SYS"
  555. ],
  556. "bytes_at_least": 512
  557. },
  558. {
  559. "kind": "algorithm",
  560. "path": "/docs",
  561. "method": "GET",
  562. "status": 200,
  563. "ctype": "text/html",
  564. "html_title": "观澜 · 算法服务 - Swagger UI",
  565. "bytes_at_least": 512
  566. },
  567. {
  568. "kind": "algorithm",
  569. "path": "/healthz",
  570. "method": "GET",
  571. "status": 200,
  572. "ctype": "application/json",
  573. "json_keys": [
  574. "endpoints",
  575. "ok",
  576. "service",
  577. "time",
  578. "version"
  579. ],
  580. "bytes_at_least": 104
  581. }
  582. ]
  583. }