openapi.yaml 59 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263
  1. openapi: 3.1.0
  2. info:
  3. title: FastAPI - Swagger UI
  4. version: 1.0.0
  5. paths:
  6. /agent/job:
  7. post:
  8. tags:
  9. - agent job interface
  10. summary: Submit Job
  11. operationId: submit_job_agent_job_post
  12. requestBody:
  13. content:
  14. application/json:
  15. schema:
  16. $ref: '#/components/schemas/BasicRequest'
  17. required: true
  18. responses:
  19. '200':
  20. description: Successful Response
  21. content:
  22. application/json:
  23. schema:
  24. $ref: '#/components/schemas/StandardResponse'
  25. '422':
  26. description: Validation Error
  27. content:
  28. application/json:
  29. schema:
  30. $ref: '#/components/schemas/HTTPValidationError'
  31. /agent/queue:
  32. post:
  33. tags:
  34. - agent job interface
  35. summary: Submit Queue
  36. operationId: submit_queue_agent_queue_post
  37. requestBody:
  38. content:
  39. application/json:
  40. schema:
  41. $ref: '#/components/schemas/BasicRequest'
  42. required: true
  43. responses:
  44. '200':
  45. description: Successful Response
  46. content:
  47. application/json:
  48. schema:
  49. $ref: '#/components/schemas/StandardResponse'
  50. '422':
  51. description: Validation Error
  52. content:
  53. application/json:
  54. schema:
  55. $ref: '#/components/schemas/HTTPValidationError'
  56. /organ/loadData:
  57. get:
  58. tags:
  59. - "\u673A\u6784&\u79D1\u5BA4\u7BA1\u7406\u63A5\u53E3"
  60. summary: Loaddata
  61. operationId: loadData_organ_loadData_get
  62. responses:
  63. '200':
  64. description: Successful Response
  65. content:
  66. application/json:
  67. schema:
  68. $ref: '#/components/schemas/StandardResponse'
  69. /organ/loadDataById/{id}:
  70. get:
  71. tags:
  72. - "\u673A\u6784&\u79D1\u5BA4\u7BA1\u7406\u63A5\u53E3"
  73. summary: Loaddatabyparentid
  74. operationId: loadDataByParentId_organ_loadDataById__id__get
  75. parameters:
  76. - name: id
  77. in: path
  78. required: true
  79. schema:
  80. type: integer
  81. title: Id
  82. responses:
  83. '200':
  84. description: Successful Response
  85. content:
  86. application/json:
  87. schema:
  88. $ref: '#/components/schemas/StandardResponse'
  89. '422':
  90. description: Validation Error
  91. content:
  92. application/json:
  93. schema:
  94. $ref: '#/components/schemas/HTTPValidationError'
  95. /organ/insert:
  96. post:
  97. tags:
  98. - "\u673A\u6784&\u79D1\u5BA4\u7BA1\u7406\u63A5\u53E3"
  99. summary: Insertdata
  100. operationId: insertData_organ_insert_post
  101. requestBody:
  102. content:
  103. application/json:
  104. schema:
  105. $ref: '#/components/schemas/SysOrganRequest'
  106. required: true
  107. responses:
  108. '200':
  109. description: Successful Response
  110. content:
  111. application/json:
  112. schema:
  113. $ref: '#/components/schemas/StandardResponse'
  114. '422':
  115. description: Validation Error
  116. content:
  117. application/json:
  118. schema:
  119. $ref: '#/components/schemas/HTTPValidationError'
  120. /organ/update:
  121. post:
  122. tags:
  123. - "\u673A\u6784&\u79D1\u5BA4\u7BA1\u7406\u63A5\u53E3"
  124. summary: Updatedata
  125. operationId: updateData_organ_update_post
  126. requestBody:
  127. content:
  128. application/json:
  129. schema:
  130. $ref: '#/components/schemas/SysOrganRequest'
  131. required: true
  132. responses:
  133. '200':
  134. description: Successful Response
  135. content:
  136. application/json:
  137. schema:
  138. $ref: '#/components/schemas/StandardResponse'
  139. '422':
  140. description: Validation Error
  141. content:
  142. application/json:
  143. schema:
  144. $ref: '#/components/schemas/HTTPValidationError'
  145. /organ/delete/{id}:
  146. post:
  147. tags:
  148. - "\u673A\u6784&\u79D1\u5BA4\u7BA1\u7406\u63A5\u53E3"
  149. summary: Deletedata
  150. operationId: deleteData_organ_delete__id__post
  151. parameters:
  152. - name: id
  153. in: path
  154. required: true
  155. schema:
  156. type: integer
  157. title: Id
  158. responses:
  159. '200':
  160. description: Successful Response
  161. content:
  162. application/json:
  163. schema:
  164. $ref: '#/components/schemas/StandardResponse'
  165. '422':
  166. description: Validation Error
  167. content:
  168. application/json:
  169. schema:
  170. $ref: '#/components/schemas/HTTPValidationError'
  171. /userRoleOrgan/data-list:
  172. post:
  173. tags:
  174. - "\u7528\u6237\u6743\u9650\u7BA1\u7406\u63A5\u53E3"
  175. summary: Datalist
  176. operationId: dataList_userRoleOrgan_data_list_post
  177. requestBody:
  178. content:
  179. application/json:
  180. schema:
  181. $ref: '#/components/schemas/SysUserRoleOrganRequest'
  182. required: true
  183. responses:
  184. '200':
  185. description: Successful Response
  186. content:
  187. application/json:
  188. schema: {}
  189. '422':
  190. description: Validation Error
  191. content:
  192. application/json:
  193. schema:
  194. $ref: '#/components/schemas/HTTPValidationError'
  195. /userRoleOrgan/insert:
  196. post:
  197. tags:
  198. - "\u7528\u6237\u6743\u9650\u7BA1\u7406\u63A5\u53E3"
  199. summary: Insertdata
  200. operationId: insertData_userRoleOrgan_insert_post
  201. requestBody:
  202. content:
  203. application/json:
  204. schema:
  205. $ref: '#/components/schemas/SysUserRoleOrganRequest'
  206. required: true
  207. responses:
  208. '200':
  209. description: Successful Response
  210. content:
  211. application/json:
  212. schema:
  213. $ref: '#/components/schemas/StandardResponse'
  214. '422':
  215. description: Validation Error
  216. content:
  217. application/json:
  218. schema:
  219. $ref: '#/components/schemas/HTTPValidationError'
  220. /userRoleOrgan/update:
  221. post:
  222. tags:
  223. - "\u7528\u6237\u6743\u9650\u7BA1\u7406\u63A5\u53E3"
  224. summary: Updatedata
  225. operationId: updateData_userRoleOrgan_update_post
  226. requestBody:
  227. content:
  228. application/json:
  229. schema:
  230. $ref: '#/components/schemas/SysUserRoleOrganRequest'
  231. required: true
  232. responses:
  233. '200':
  234. description: Successful Response
  235. content:
  236. application/json:
  237. schema:
  238. $ref: '#/components/schemas/StandardResponse'
  239. '422':
  240. description: Validation Error
  241. content:
  242. application/json:
  243. schema:
  244. $ref: '#/components/schemas/HTTPValidationError'
  245. /userRoleOrgan/delete/{id}:
  246. post:
  247. tags:
  248. - "\u7528\u6237\u6743\u9650\u7BA1\u7406\u63A5\u53E3"
  249. summary: Deletedata
  250. operationId: deleteData_userRoleOrgan_delete__id__post
  251. parameters:
  252. - name: id
  253. in: path
  254. required: true
  255. schema:
  256. type: integer
  257. title: Id
  258. responses:
  259. '200':
  260. description: Successful Response
  261. content:
  262. application/json:
  263. schema:
  264. $ref: '#/components/schemas/StandardResponse'
  265. '422':
  266. description: Validation Error
  267. content:
  268. application/json:
  269. schema:
  270. $ref: '#/components/schemas/HTTPValidationError'
  271. /sys/currSURO:
  272. get:
  273. tags:
  274. - "\u7CFB\u7EDF\u63A5\u53E3"
  275. summary: Currsuro
  276. operationId: currSURO_sys_currSURO_get
  277. responses:
  278. '200':
  279. description: Successful Response
  280. content:
  281. application/json:
  282. schema:
  283. $ref: '#/components/schemas/StandardResponse'
  284. /sys/loadSURO:
  285. get:
  286. tags:
  287. - "\u7CFB\u7EDF\u63A5\u53E3"
  288. summary: Loadsuro
  289. operationId: loadSURO_sys_loadSURO_get
  290. responses:
  291. '200':
  292. description: Successful Response
  293. content:
  294. application/json:
  295. schema:
  296. $ref: '#/components/schemas/StandardResponse'
  297. /sys/changeSURO/{id}:
  298. post:
  299. tags:
  300. - "\u7CFB\u7EDF\u63A5\u53E3"
  301. summary: Changesuro
  302. operationId: changeSURO_sys_changeSURO__id__post
  303. parameters:
  304. - name: id
  305. in: path
  306. required: true
  307. schema:
  308. type: integer
  309. title: Id
  310. responses:
  311. '200':
  312. description: Successful Response
  313. content:
  314. application/json:
  315. schema:
  316. $ref: '#/components/schemas/StandardResponse'
  317. '422':
  318. description: Validation Error
  319. content:
  320. application/json:
  321. schema:
  322. $ref: '#/components/schemas/HTTPValidationError'
  323. /file/upload/{file_type}/{job_id}:
  324. post:
  325. tags:
  326. - agent job interface
  327. summary: Upload File
  328. operationId: upload_file_file_upload__file_type___job_id__post
  329. parameters:
  330. - name: file_type
  331. in: path
  332. required: true
  333. schema:
  334. type: string
  335. title: File Type
  336. - name: job_id
  337. in: path
  338. required: true
  339. schema:
  340. type: integer
  341. title: Job Id
  342. requestBody:
  343. required: true
  344. content:
  345. multipart/form-data:
  346. schema:
  347. $ref: '#/components/schemas/Body_upload_file_file_upload__file_type___job_id__post'
  348. responses:
  349. '200':
  350. description: Successful Response
  351. content:
  352. application/json:
  353. schema:
  354. $ref: '#/components/schemas/StandardResponse'
  355. '422':
  356. description: Validation Error
  357. content:
  358. application/json:
  359. schema:
  360. $ref: '#/components/schemas/HTTPValidationError'
  361. /file/browse:
  362. post:
  363. tags:
  364. - agent job interface
  365. summary: Browser File
  366. operationId: browser_file_file_browse_post
  367. requestBody:
  368. content:
  369. application/json:
  370. schema:
  371. $ref: '#/components/schemas/BasicRequest'
  372. required: true
  373. responses:
  374. '200':
  375. description: Successful Response
  376. content:
  377. application/json:
  378. schema:
  379. $ref: '#/components/schemas/StandardResponse'
  380. '422':
  381. description: Validation Error
  382. content:
  383. application/json:
  384. schema:
  385. $ref: '#/components/schemas/HTTPValidationError'
  386. /file/download/{job_id}:
  387. get:
  388. tags:
  389. - agent job interface
  390. summary: Download File
  391. operationId: download_file_file_download__job_id__get
  392. parameters:
  393. - name: job_id
  394. in: path
  395. required: true
  396. schema:
  397. type: integer
  398. title: Job Id
  399. - name: path
  400. in: query
  401. required: false
  402. schema:
  403. type: string
  404. default: path
  405. title: Path
  406. responses:
  407. '200':
  408. description: Successful Response
  409. content:
  410. application/json:
  411. schema: {}
  412. '422':
  413. description: Validation Error
  414. content:
  415. application/json:
  416. schema:
  417. $ref: '#/components/schemas/HTTPValidationError'
  418. /file/view/{job_id}:
  419. get:
  420. tags:
  421. - agent job interface
  422. summary: View File
  423. operationId: view_file_file_view__job_id__get
  424. parameters:
  425. - name: job_id
  426. in: path
  427. required: true
  428. schema:
  429. type: integer
  430. title: Job Id
  431. - name: path
  432. in: query
  433. required: false
  434. schema:
  435. type: string
  436. default: path
  437. title: Path
  438. responses:
  439. '200':
  440. description: Successful Response
  441. content:
  442. application/json:
  443. schema:
  444. $ref: '#/components/schemas/StandardResponse'
  445. '422':
  446. description: Validation Error
  447. content:
  448. application/json:
  449. schema:
  450. $ref: '#/components/schemas/HTTPValidationError'
  451. /user/session:
  452. post:
  453. tags:
  454. - agent job interface
  455. summary: Register
  456. operationId: register_user_session_post
  457. requestBody:
  458. content:
  459. application/json:
  460. schema:
  461. $ref: '#/components/schemas/BasicRequest'
  462. required: true
  463. responses:
  464. '200':
  465. description: Successful Response
  466. content:
  467. application/json:
  468. schema:
  469. $ref: '#/components/schemas/StandardResponse'
  470. '422':
  471. description: Validation Error
  472. content:
  473. application/json:
  474. schema:
  475. $ref: '#/components/schemas/HTTPValidationError'
  476. /user/logout/{session_id}:
  477. get:
  478. tags:
  479. - agent job interface
  480. summary: Logout
  481. operationId: logout_user_logout__session_id__get
  482. parameters:
  483. - name: session_id
  484. in: path
  485. required: true
  486. schema:
  487. type: string
  488. title: Session Id
  489. responses:
  490. '200':
  491. description: Successful Response
  492. content:
  493. application/json:
  494. schema:
  495. $ref: '#/components/schemas/StandardResponse'
  496. '422':
  497. description: Validation Error
  498. content:
  499. application/json:
  500. schema:
  501. $ref: '#/components/schemas/HTTPValidationError'
  502. /user/signin:
  503. post:
  504. tags:
  505. - agent job interface
  506. summary: Signin
  507. operationId: signin_user_signin_post
  508. requestBody:
  509. content:
  510. application/json:
  511. schema:
  512. $ref: '#/components/schemas/BasicRequest'
  513. required: true
  514. responses:
  515. '200':
  516. description: Successful Response
  517. content:
  518. application/json:
  519. schema:
  520. $ref: '#/components/schemas/StandardResponse'
  521. '422':
  522. description: Validation Error
  523. content:
  524. application/json:
  525. schema:
  526. $ref: '#/components/schemas/HTTPValidationError'
  527. /user/roles:
  528. get:
  529. tags:
  530. - agent job interface
  531. summary: Get Roles Endpoint
  532. operationId: get_roles_endpoint_user_roles_get
  533. responses:
  534. '200':
  535. description: Successful Response
  536. content:
  537. application/json:
  538. schema:
  539. $ref: '#/components/schemas/StandardResponse'
  540. post:
  541. tags:
  542. - agent job interface
  543. summary: Create Role With Permissions Endpoint
  544. operationId: create_role_with_permissions_endpoint_user_roles_post
  545. requestBody:
  546. content:
  547. application/json:
  548. schema:
  549. $ref: '#/components/schemas/RoleCreateWithPermissionsRequest'
  550. required: true
  551. responses:
  552. '200':
  553. description: Successful Response
  554. content:
  555. application/json:
  556. schema:
  557. $ref: '#/components/schemas/StandardResponse'
  558. '422':
  559. description: Validation Error
  560. content:
  561. application/json:
  562. schema:
  563. $ref: '#/components/schemas/HTTPValidationError'
  564. /user/permissions:
  565. get:
  566. tags:
  567. - agent job interface
  568. summary: Get Permissions Endpoint
  569. operationId: get_permissions_endpoint_user_permissions_get
  570. responses:
  571. '200':
  572. description: Successful Response
  573. content:
  574. application/json:
  575. schema:
  576. $ref: '#/components/schemas/StandardResponse'
  577. post:
  578. tags:
  579. - agent job interface
  580. summary: Create Permission Endpoint
  581. operationId: create_permission_endpoint_user_permissions_post
  582. requestBody:
  583. content:
  584. application/json:
  585. schema:
  586. $ref: '#/components/schemas/PermissionCreateRequest'
  587. required: true
  588. responses:
  589. '200':
  590. description: Successful Response
  591. content:
  592. application/json:
  593. schema:
  594. $ref: '#/components/schemas/StandardResponse'
  595. '422':
  596. description: Validation Error
  597. content:
  598. application/json:
  599. schema:
  600. $ref: '#/components/schemas/HTTPValidationError'
  601. /user/users/roles:
  602. post:
  603. tags:
  604. - agent job interface
  605. summary: Assign Roles To User Endpoint
  606. operationId: assign_roles_to_user_endpoint_user_users_roles_post
  607. requestBody:
  608. content:
  609. application/json:
  610. schema:
  611. $ref: '#/components/schemas/UserRoleAssignmentRequest'
  612. required: true
  613. responses:
  614. '200':
  615. description: Successful Response
  616. content:
  617. application/json:
  618. schema:
  619. $ref: '#/components/schemas/StandardResponse'
  620. '422':
  621. description: Validation Error
  622. content:
  623. application/json:
  624. schema:
  625. $ref: '#/components/schemas/HTTPValidationError'
  626. /user/users:
  627. get:
  628. tags:
  629. - agent job interface
  630. summary: Get Users Endpoint
  631. operationId: get_users_endpoint_user_users_get
  632. parameters:
  633. - name: userName
  634. in: query
  635. required: false
  636. schema:
  637. anyOf:
  638. - type: string
  639. - type: 'null'
  640. description: "\u7528\u6237\u540D\uFF0C\u7528\u4E8E\u6A21\u7CCA\u67E5\u8BE2"
  641. title: Username
  642. description: "\u7528\u6237\u540D\uFF0C\u7528\u4E8E\u6A21\u7CCA\u67E5\u8BE2"
  643. - name: pageNo
  644. in: query
  645. required: false
  646. schema:
  647. type: integer
  648. minimum: 1
  649. description: "\u9875\u7801\uFF0C\u4ECE1\u5F00\u59CB"
  650. default: 1
  651. title: Pageno
  652. description: "\u9875\u7801\uFF0C\u4ECE1\u5F00\u59CB"
  653. - name: pageSize
  654. in: query
  655. required: false
  656. schema:
  657. type: integer
  658. maximum: 100
  659. minimum: 1
  660. description: "\u6BCF\u9875\u6570\u91CF\uFF0C\u6700\u5927100"
  661. default: 10
  662. title: Pagesize
  663. description: "\u6BCF\u9875\u6570\u91CF\uFF0C\u6700\u5927100"
  664. responses:
  665. '200':
  666. description: Successful Response
  667. content:
  668. application/json:
  669. schema:
  670. $ref: '#/components/schemas/StandardResponse'
  671. '422':
  672. description: Validation Error
  673. content:
  674. application/json:
  675. schema:
  676. $ref: '#/components/schemas/HTTPValidationError'
  677. /kb/summary:
  678. post:
  679. tags:
  680. - knowledge build interface
  681. summary: Summary Func
  682. operationId: summary_func_kb_summary_post
  683. requestBody:
  684. content:
  685. application/json:
  686. schema:
  687. $ref: '#/components/schemas/BasicRequest'
  688. required: true
  689. responses:
  690. '200':
  691. description: Successful Response
  692. content:
  693. application/json:
  694. schema:
  695. $ref: '#/components/schemas/StandardResponse'
  696. '422':
  697. description: Validation Error
  698. content:
  699. application/json:
  700. schema:
  701. $ref: '#/components/schemas/HTTPValidationError'
  702. /kb/schemas:
  703. post:
  704. tags:
  705. - knowledge build interface
  706. summary: Schemas Func
  707. operationId: schemas_func_kb_schemas_post
  708. requestBody:
  709. content:
  710. application/json:
  711. schema:
  712. $ref: '#/components/schemas/BasicRequest'
  713. required: true
  714. responses:
  715. '200':
  716. description: Successful Response
  717. content:
  718. application/json:
  719. schema:
  720. $ref: '#/components/schemas/StandardResponse'
  721. '422':
  722. description: Validation Error
  723. content:
  724. application/json:
  725. schema:
  726. $ref: '#/components/schemas/HTTPValidationError'
  727. /kb/nodes:
  728. post:
  729. tags:
  730. - knowledge build interface
  731. summary: Nodes Func
  732. operationId: nodes_func_kb_nodes_post
  733. requestBody:
  734. content:
  735. application/json:
  736. schema:
  737. $ref: '#/components/schemas/BasicRequest'
  738. required: true
  739. responses:
  740. '200':
  741. description: Successful Response
  742. content:
  743. application/json:
  744. schema:
  745. $ref: '#/components/schemas/StandardResponse'
  746. '422':
  747. description: Validation Error
  748. content:
  749. application/json:
  750. schema:
  751. $ref: '#/components/schemas/HTTPValidationError'
  752. /kb/graph_data:
  753. get:
  754. tags:
  755. - knowledge build interface
  756. summary: Get Graph Data
  757. description: "\u83B7\u53D6\u7528\u6237\u5173\u8054\u7684\u56FE\u8C31\u6570\u636E\
  758. \n- \u4ECEsession_id\u83B7\u53D6user_id\n- \u67E5\u8BE2DbUserDataRelation\u83B7\
  759. \u53D6\u7528\u6237\u5173\u8054\u7684\u6570\u636E\n- \u8FD4\u56DE\u4E0EJava\u7AEF\
  760. \u4E00\u81F4\u7684\u6570\u636E\u7ED3\u6784"
  761. operationId: get_graph_data_kb_graph_data_get
  762. parameters:
  763. - name: label_name
  764. in: query
  765. required: true
  766. schema:
  767. type: string
  768. title: Label Name
  769. - name: user_id
  770. in: query
  771. required: true
  772. schema:
  773. type: integer
  774. title: User Id
  775. - name: graph_id
  776. in: query
  777. required: true
  778. schema:
  779. type: integer
  780. title: Graph Id
  781. - name: input_str
  782. in: query
  783. required: false
  784. schema:
  785. anyOf:
  786. - type: string
  787. - type: 'null'
  788. title: Input Str
  789. responses:
  790. '200':
  791. description: Successful Response
  792. content:
  793. application/json:
  794. schema:
  795. $ref: '#/components/schemas/StandardResponse'
  796. '422':
  797. description: Validation Error
  798. content:
  799. application/json:
  800. schema:
  801. $ref: '#/components/schemas/HTTPValidationError'
  802. /kb/user_sub_graphs:
  803. get:
  804. tags:
  805. - knowledge build interface
  806. summary: Get User Sub Graphs
  807. description: "\u83B7\u53D6\u7528\u6237\u5173\u8054\u7684\u5B50\u56FE\u5217\u8868\
  808. \n- \u6839\u636Euser_id\u548Cdata_category='sub_graph'\u67E5\u8BE2user_data_relations\u8868\
  809. \n- \u5173\u8054jobs\u8868\u83B7\u53D6job_name\n- \u8FD4\u56DEdata_id\u548C\
  810. job_name\u5217\u8868\n- \u652F\u6301\u5206\u9875\u67E5\u8BE2\uFF0C\u53C2\u6570\
  811. pageNo(\u9ED8\u8BA41)\u548CpageSize(\u9ED8\u8BA410)"
  812. operationId: get_user_sub_graphs_kb_user_sub_graphs_get
  813. parameters:
  814. - name: user_id
  815. in: query
  816. required: true
  817. schema:
  818. type: integer
  819. title: User Id
  820. - name: pageNo
  821. in: query
  822. required: false
  823. schema:
  824. type: integer
  825. default: 1
  826. title: Pageno
  827. - name: pageSize
  828. in: query
  829. required: false
  830. schema:
  831. type: integer
  832. default: 10
  833. title: Pagesize
  834. responses:
  835. '200':
  836. description: Successful Response
  837. content:
  838. application/json:
  839. schema:
  840. $ref: '#/components/schemas/StandardResponse'
  841. '422':
  842. description: Validation Error
  843. content:
  844. application/json:
  845. schema:
  846. $ref: '#/components/schemas/HTTPValidationError'
  847. /kb/disease_tree:
  848. get:
  849. tags:
  850. - knowledge build interface
  851. summary: Get Disease Tree
  852. description: "\u6839\u636Egraph_id\u67E5\u8BE2kg_nodes\u8868\u4E2Dcategory\u662F\
  853. \u75BE\u75C5\u7684\u6570\u636E\u5E76\u6784\u5EFA\u6811\u72B6\u7ED3\u6784\n\
  854. \u4E25\u683C\u6309\u7167\u5B57\u6BCDA-Z\u987A\u5E8F\u8FDB\u884C\u5F52\u7C7B\
  855. \uFF0C\u4E2D\u6587\u9996\u5B57\u6BCD\u5F52\u7C7B\u5230\u5BF9\u5E94\u62FC\u97F3\
  856. \u9996\u5B57\u6BCD"
  857. operationId: get_disease_tree_kb_disease_tree_get
  858. parameters:
  859. - name: graph_id
  860. in: query
  861. required: true
  862. schema:
  863. type: integer
  864. title: Graph Id
  865. responses:
  866. '200':
  867. description: Successful Response
  868. content:
  869. application/json:
  870. schema: {}
  871. '422':
  872. description: Validation Error
  873. content:
  874. application/json:
  875. schema:
  876. $ref: '#/components/schemas/HTTPValidationError'
  877. /kb/graph_categories:
  878. get:
  879. tags:
  880. - knowledge build interface
  881. summary: Get Graph Categories
  882. description: "\u6839\u636Euser_id\u548Cgraph_id\u67E5\u8BE2kg_graph_category\u8868\
  883. \u4E2D\u7684category\u5217\u8868\n\u8FD4\u56DEcategory\u7684\u5B57\u7B26\u4E32\
  884. \u5217\u8868(\u6309\u7167id\u6B63\u5E8F\u6392\u5217)"
  885. operationId: get_graph_categories_kb_graph_categories_get
  886. parameters:
  887. - name: user_id
  888. in: query
  889. required: true
  890. schema:
  891. type: integer
  892. title: User Id
  893. - name: graph_id
  894. in: query
  895. required: true
  896. schema:
  897. type: integer
  898. title: Graph Id
  899. responses:
  900. '200':
  901. description: Successful Response
  902. content:
  903. application/json:
  904. schema: {}
  905. '422':
  906. description: Validation Error
  907. content:
  908. application/json:
  909. schema:
  910. $ref: '#/components/schemas/HTTPValidationError'
  911. /kb/tree_structure:
  912. get:
  913. tags:
  914. - knowledge build interface
  915. summary: Get Tree Structure
  916. description: "\u6839\u636Euser_id\u548Cgraph_id\u83B7\u53D6\u6811\u72B6\u7ED3\
  917. \u6784\u6570\u636E\n1. \u67E5\u8BE2kg_tree_structures\u8868\u83B7\u53D6content\n\
  918. 2. \u8C03\u7528get_tree_dto\u65B9\u6CD5\u8F6C\u6362\u6570\u636E\u683C\u5F0F\
  919. \n3. \u8FD4\u56DE\u8F6C\u6362\u540E\u7684\u6570\u636E"
  920. operationId: get_tree_structure_kb_tree_structure_get
  921. parameters:
  922. - name: user_id
  923. in: query
  924. required: true
  925. schema:
  926. type: integer
  927. title: User Id
  928. - name: graph_id
  929. in: query
  930. required: true
  931. schema:
  932. type: integer
  933. title: Graph Id
  934. responses:
  935. '200':
  936. description: Successful Response
  937. content:
  938. application/json:
  939. schema: {}
  940. '422':
  941. description: Validation Error
  942. content:
  943. application/json:
  944. schema:
  945. $ref: '#/components/schemas/HTTPValidationError'
  946. /knowledge-base/:
  947. post:
  948. tags:
  949. - knowledge base interface
  950. summary: Create Knowledge Base
  951. operationId: create_knowledge_base_knowledge_base__post
  952. requestBody:
  953. required: true
  954. content:
  955. application/json:
  956. schema:
  957. $ref: '#/components/schemas/KnowledgeBaseCreate'
  958. responses:
  959. '200':
  960. description: Successful Response
  961. content:
  962. application/json:
  963. schema:
  964. $ref: '#/components/schemas/ResponseModel'
  965. '422':
  966. description: Validation Error
  967. content:
  968. application/json:
  969. schema:
  970. $ref: '#/components/schemas/HTTPValidationError'
  971. get:
  972. tags:
  973. - knowledge base interface
  974. summary: List Knowledge Bases
  975. operationId: list_knowledge_bases_knowledge_base__get
  976. parameters:
  977. - name: pageNo
  978. in: query
  979. required: false
  980. schema:
  981. type: integer
  982. default: 1
  983. title: Pageno
  984. - name: pageSize
  985. in: query
  986. required: false
  987. schema:
  988. type: integer
  989. default: 10
  990. title: Pagesize
  991. - name: name
  992. in: query
  993. required: false
  994. schema:
  995. anyOf:
  996. - type: string
  997. - type: 'null'
  998. title: Name
  999. responses:
  1000. '200':
  1001. description: Successful Response
  1002. content:
  1003. application/json:
  1004. schema:
  1005. $ref: '#/components/schemas/ResponseModel'
  1006. '422':
  1007. description: Validation Error
  1008. content:
  1009. application/json:
  1010. schema:
  1011. $ref: '#/components/schemas/HTTPValidationError'
  1012. /knowledge-base/{kb_id}:
  1013. put:
  1014. tags:
  1015. - knowledge base interface
  1016. summary: Update Knowledge Base
  1017. operationId: update_knowledge_base_knowledge_base__kb_id__put
  1018. parameters:
  1019. - name: kb_id
  1020. in: path
  1021. required: true
  1022. schema:
  1023. type: integer
  1024. title: Kb Id
  1025. requestBody:
  1026. required: true
  1027. content:
  1028. application/json:
  1029. schema:
  1030. $ref: '#/components/schemas/KnowledgeBaseUpdate'
  1031. responses:
  1032. '200':
  1033. description: Successful Response
  1034. content:
  1035. application/json:
  1036. schema:
  1037. $ref: '#/components/schemas/ResponseModel'
  1038. '422':
  1039. description: Validation Error
  1040. content:
  1041. application/json:
  1042. schema:
  1043. $ref: '#/components/schemas/HTTPValidationError'
  1044. delete:
  1045. tags:
  1046. - knowledge base interface
  1047. summary: Delete Knowledge Base
  1048. operationId: delete_knowledge_base_knowledge_base__kb_id__delete
  1049. parameters:
  1050. - name: kb_id
  1051. in: path
  1052. required: true
  1053. schema:
  1054. type: integer
  1055. title: Kb Id
  1056. responses:
  1057. '200':
  1058. description: Successful Response
  1059. content:
  1060. application/json:
  1061. schema:
  1062. $ref: '#/components/schemas/ResponseModel'
  1063. '422':
  1064. description: Validation Error
  1065. content:
  1066. application/json:
  1067. schema:
  1068. $ref: '#/components/schemas/HTTPValidationError'
  1069. get:
  1070. tags:
  1071. - knowledge base interface
  1072. summary: Get Knowledge Base
  1073. operationId: get_knowledge_base_knowledge_base__kb_id__get
  1074. parameters:
  1075. - name: kb_id
  1076. in: path
  1077. required: true
  1078. schema:
  1079. type: integer
  1080. title: Kb Id
  1081. responses:
  1082. '200':
  1083. description: Successful Response
  1084. content:
  1085. application/json:
  1086. schema:
  1087. $ref: '#/components/schemas/ResponseModel'
  1088. '422':
  1089. description: Validation Error
  1090. content:
  1091. application/json:
  1092. schema:
  1093. $ref: '#/components/schemas/HTTPValidationError'
  1094. /knowledge-base/name/{name}:
  1095. get:
  1096. tags:
  1097. - knowledge base interface
  1098. summary: Get Knowledge Base By Name
  1099. operationId: get_knowledge_base_by_name_knowledge_base_name__name__get
  1100. parameters:
  1101. - name: name
  1102. in: path
  1103. required: true
  1104. schema:
  1105. type: string
  1106. title: Name
  1107. responses:
  1108. '200':
  1109. description: Successful Response
  1110. content:
  1111. application/json:
  1112. schema:
  1113. $ref: '#/components/schemas/ResponseModel'
  1114. '422':
  1115. description: Validation Error
  1116. content:
  1117. application/json:
  1118. schema:
  1119. $ref: '#/components/schemas/HTTPValidationError'
  1120. /knowledge-base/{kb_id}/files/:
  1121. post:
  1122. tags:
  1123. - knowledge base interface
  1124. summary: Upload Files
  1125. operationId: upload_files_knowledge_base__kb_id__files__post
  1126. parameters:
  1127. - name: kb_id
  1128. in: path
  1129. required: true
  1130. schema:
  1131. type: integer
  1132. title: Kb Id
  1133. requestBody:
  1134. required: true
  1135. content:
  1136. multipart/form-data:
  1137. schema:
  1138. $ref: '#/components/schemas/Body_upload_files_knowledge_base__kb_id__files__post'
  1139. responses:
  1140. '200':
  1141. description: Successful Response
  1142. content:
  1143. application/json:
  1144. schema:
  1145. $ref: '#/components/schemas/ResponseModel'
  1146. '422':
  1147. description: Validation Error
  1148. content:
  1149. application/json:
  1150. schema:
  1151. $ref: '#/components/schemas/HTTPValidationError'
  1152. get:
  1153. tags:
  1154. - knowledge base interface
  1155. summary: List Files
  1156. operationId: list_files_knowledge_base__kb_id__files__get
  1157. parameters:
  1158. - name: kb_id
  1159. in: path
  1160. required: true
  1161. schema:
  1162. type: integer
  1163. title: Kb Id
  1164. - name: pageNo
  1165. in: query
  1166. required: false
  1167. schema:
  1168. type: integer
  1169. default: 1
  1170. title: Pageno
  1171. - name: pageSize
  1172. in: query
  1173. required: false
  1174. schema:
  1175. type: integer
  1176. default: 10
  1177. title: Pagesize
  1178. - name: file_name
  1179. in: query
  1180. required: false
  1181. schema:
  1182. anyOf:
  1183. - type: string
  1184. - type: 'null'
  1185. title: File Name
  1186. responses:
  1187. '200':
  1188. description: Successful Response
  1189. content:
  1190. application/json:
  1191. schema:
  1192. $ref: '#/components/schemas/ResponseModel'
  1193. '422':
  1194. description: Validation Error
  1195. content:
  1196. application/json:
  1197. schema:
  1198. $ref: '#/components/schemas/HTTPValidationError'
  1199. /knowledge-base/{kb_id}/files/search/:
  1200. get:
  1201. tags:
  1202. - knowledge base interface
  1203. summary: Search Files
  1204. operationId: search_files_knowledge_base__kb_id__files_search__get
  1205. parameters:
  1206. - name: kb_id
  1207. in: path
  1208. required: true
  1209. schema:
  1210. type: integer
  1211. title: Kb Id
  1212. - name: file_name
  1213. in: query
  1214. required: true
  1215. schema:
  1216. type: string
  1217. title: File Name
  1218. responses:
  1219. '200':
  1220. description: Successful Response
  1221. content:
  1222. application/json:
  1223. schema:
  1224. $ref: '#/components/schemas/ResponseModel'
  1225. '422':
  1226. description: Validation Error
  1227. content:
  1228. application/json:
  1229. schema:
  1230. $ref: '#/components/schemas/HTTPValidationError'
  1231. /files/{file_id}/download:
  1232. get:
  1233. tags:
  1234. - knowledge base interface
  1235. summary: Download File
  1236. operationId: download_file_files__file_id__download_get
  1237. parameters:
  1238. - name: file_id
  1239. in: path
  1240. required: true
  1241. schema:
  1242. type: integer
  1243. title: File Id
  1244. responses:
  1245. '200':
  1246. description: Successful Response
  1247. content:
  1248. application/json:
  1249. schema: {}
  1250. '422':
  1251. description: Validation Error
  1252. content:
  1253. application/json:
  1254. schema:
  1255. $ref: '#/components/schemas/HTTPValidationError'
  1256. /files/{file_id}:
  1257. delete:
  1258. tags:
  1259. - knowledge base interface
  1260. summary: Delete File
  1261. operationId: delete_file_files__file_id__delete
  1262. parameters:
  1263. - name: file_id
  1264. in: path
  1265. required: true
  1266. schema:
  1267. type: integer
  1268. title: File Id
  1269. responses:
  1270. '200':
  1271. description: Successful Response
  1272. content:
  1273. application/json:
  1274. schema:
  1275. type: object
  1276. title: Response Delete File Files File Id Delete
  1277. '422':
  1278. description: Validation Error
  1279. content:
  1280. application/json:
  1281. schema:
  1282. $ref: '#/components/schemas/HTTPValidationError'
  1283. /files/{file_id}/changeStatus:
  1284. get:
  1285. tags:
  1286. - knowledge base interface
  1287. summary: Change File Status
  1288. operationId: change_file_status_files__file_id__changeStatus_get
  1289. parameters:
  1290. - name: file_id
  1291. in: path
  1292. required: true
  1293. schema:
  1294. type: integer
  1295. title: File Id
  1296. - name: status
  1297. in: query
  1298. required: true
  1299. schema:
  1300. type: boolean
  1301. title: Status
  1302. responses:
  1303. '200':
  1304. description: Successful Response
  1305. content:
  1306. application/json:
  1307. schema:
  1308. type: object
  1309. title: Response Change File Status Files File Id Changestatus Get
  1310. '422':
  1311. description: Validation Error
  1312. content:
  1313. application/json:
  1314. schema:
  1315. $ref: '#/components/schemas/HTTPValidationError'
  1316. /files/batch-update:
  1317. put:
  1318. tags:
  1319. - knowledge base interface
  1320. summary: Batch Update Files
  1321. operationId: batch_update_files_files_batch_update_put
  1322. requestBody:
  1323. content:
  1324. application/json:
  1325. schema:
  1326. $ref: '#/components/schemas/BatchFileUpdate'
  1327. required: true
  1328. responses:
  1329. '200':
  1330. description: Successful Response
  1331. content:
  1332. application/json:
  1333. schema:
  1334. $ref: '#/components/schemas/ResponseModel'
  1335. '422':
  1336. description: Validation Error
  1337. content:
  1338. application/json:
  1339. schema:
  1340. $ref: '#/components/schemas/HTTPValidationError'
  1341. /graph_mg/entity/create:
  1342. post:
  1343. tags:
  1344. - knowledge graph management interface
  1345. summary: Create Entity
  1346. operationId: create_entity_graph_mg_entity_create_post
  1347. requestBody:
  1348. content:
  1349. application/json:
  1350. schema:
  1351. items:
  1352. $ref: '#/components/schemas/CreateEntity'
  1353. type: array
  1354. title: Entities
  1355. required: true
  1356. responses:
  1357. '200':
  1358. description: Successful Response
  1359. content:
  1360. application/json:
  1361. schema:
  1362. $ref: '#/components/schemas/StandardResponse'
  1363. '422':
  1364. description: Validation Error
  1365. content:
  1366. application/json:
  1367. schema:
  1368. $ref: '#/components/schemas/HTTPValidationError'
  1369. /graph_mg/entity/delete:
  1370. post:
  1371. tags:
  1372. - knowledge graph management interface
  1373. summary: Delete Entity
  1374. operationId: delete_entity_graph_mg_entity_delete_post
  1375. requestBody:
  1376. content:
  1377. application/json:
  1378. schema:
  1379. items:
  1380. $ref: '#/components/schemas/DeleteEntity'
  1381. type: array
  1382. title: Entities
  1383. required: true
  1384. responses:
  1385. '200':
  1386. description: Successful Response
  1387. content:
  1388. application/json:
  1389. schema:
  1390. $ref: '#/components/schemas/StandardResponse'
  1391. '422':
  1392. description: Validation Error
  1393. content:
  1394. application/json:
  1395. schema:
  1396. $ref: '#/components/schemas/HTTPValidationError'
  1397. /graph_mg/entity/update:
  1398. post:
  1399. tags:
  1400. - knowledge graph management interface
  1401. summary: Update Entity
  1402. operationId: update_entity_graph_mg_entity_update_post
  1403. requestBody:
  1404. content:
  1405. application/json:
  1406. schema:
  1407. items:
  1408. $ref: '#/components/schemas/UpdateEntity'
  1409. type: array
  1410. title: Entities
  1411. required: true
  1412. responses:
  1413. '200':
  1414. description: Successful Response
  1415. content:
  1416. application/json:
  1417. schema:
  1418. $ref: '#/components/schemas/StandardResponse'
  1419. '422':
  1420. description: Validation Error
  1421. content:
  1422. application/json:
  1423. schema:
  1424. $ref: '#/components/schemas/HTTPValidationError'
  1425. /graph_mg/entity/find:
  1426. post:
  1427. tags:
  1428. - knowledge graph management interface
  1429. summary: Find Entity
  1430. operationId: find_entity_graph_mg_entity_find_post
  1431. requestBody:
  1432. content:
  1433. application/json:
  1434. schema:
  1435. $ref: '#/components/schemas/FindEntity'
  1436. required: true
  1437. responses:
  1438. '200':
  1439. description: Successful Response
  1440. content:
  1441. application/json:
  1442. schema:
  1443. $ref: '#/components/schemas/StandardResponse'
  1444. '422':
  1445. description: Validation Error
  1446. content:
  1447. application/json:
  1448. schema:
  1449. $ref: '#/components/schemas/HTTPValidationError'
  1450. /graph_mg/entity/search:
  1451. post:
  1452. tags:
  1453. - knowledge graph management interface
  1454. summary: Search Entity
  1455. operationId: search_entity_graph_mg_entity_search_post
  1456. requestBody:
  1457. content:
  1458. application/json:
  1459. schema:
  1460. $ref: '#/components/schemas/SearchEntity'
  1461. required: true
  1462. responses:
  1463. '200':
  1464. description: Successful Response
  1465. content:
  1466. application/json:
  1467. schema:
  1468. $ref: '#/components/schemas/StandardResponse'
  1469. '422':
  1470. description: Validation Error
  1471. content:
  1472. application/json:
  1473. schema:
  1474. $ref: '#/components/schemas/HTTPValidationError'
  1475. /graph_mg/property/create:
  1476. post:
  1477. tags:
  1478. - knowledge graph management interface
  1479. summary: Create Property
  1480. operationId: create_property_graph_mg_property_create_post
  1481. requestBody:
  1482. content:
  1483. application/json:
  1484. schema:
  1485. items:
  1486. $ref: '#/components/schemas/EntityVO'
  1487. type: array
  1488. title: Entities
  1489. required: true
  1490. responses:
  1491. '200':
  1492. description: Successful Response
  1493. content:
  1494. application/json:
  1495. schema:
  1496. $ref: '#/components/schemas/StandardResponse'
  1497. '422':
  1498. description: Validation Error
  1499. content:
  1500. application/json:
  1501. schema:
  1502. $ref: '#/components/schemas/HTTPValidationError'
  1503. /graph_mg/property/update:
  1504. post:
  1505. tags:
  1506. - knowledge graph management interface
  1507. summary: Update Property
  1508. operationId: update_property_graph_mg_property_update_post
  1509. requestBody:
  1510. content:
  1511. application/json:
  1512. schema:
  1513. $ref: '#/components/schemas/UpdateProperty'
  1514. required: true
  1515. responses:
  1516. '200':
  1517. description: Successful Response
  1518. content:
  1519. application/json:
  1520. schema:
  1521. $ref: '#/components/schemas/StandardResponse'
  1522. '422':
  1523. description: Validation Error
  1524. content:
  1525. application/json:
  1526. schema:
  1527. $ref: '#/components/schemas/HTTPValidationError'
  1528. /graph_mg/relationship/create:
  1529. post:
  1530. tags:
  1531. - knowledge graph management interface
  1532. summary: Create Relationship
  1533. operationId: create_relationship_graph_mg_relationship_create_post
  1534. requestBody:
  1535. content:
  1536. application/json:
  1537. schema:
  1538. items:
  1539. $ref: '#/components/schemas/RelationshipVO'
  1540. type: array
  1541. title: Relationships
  1542. required: true
  1543. responses:
  1544. '200':
  1545. description: Successful Response
  1546. content:
  1547. application/json:
  1548. schema:
  1549. $ref: '#/components/schemas/StandardResponse'
  1550. '422':
  1551. description: Validation Error
  1552. content:
  1553. application/json:
  1554. schema:
  1555. $ref: '#/components/schemas/HTTPValidationError'
  1556. /graph_mg/relationship/delete:
  1557. post:
  1558. tags:
  1559. - knowledge graph management interface
  1560. summary: Delete Relationship
  1561. operationId: delete_relationship_graph_mg_relationship_delete_post
  1562. requestBody:
  1563. content:
  1564. application/json:
  1565. schema:
  1566. items:
  1567. $ref: '#/components/schemas/RelationshipVO'
  1568. type: array
  1569. title: Relationships
  1570. required: true
  1571. responses:
  1572. '200':
  1573. description: Successful Response
  1574. content:
  1575. application/json:
  1576. schema:
  1577. $ref: '#/components/schemas/StandardResponse'
  1578. '422':
  1579. description: Validation Error
  1580. content:
  1581. application/json:
  1582. schema:
  1583. $ref: '#/components/schemas/HTTPValidationError'
  1584. /graph_mg/relationship/search:
  1585. post:
  1586. tags:
  1587. - knowledge graph management interface
  1588. summary: Search Relationship
  1589. operationId: search_relationship_graph_mg_relationship_search_post
  1590. requestBody:
  1591. content:
  1592. application/json:
  1593. schema:
  1594. $ref: '#/components/schemas/RelationshipNameVO'
  1595. required: true
  1596. responses:
  1597. '200':
  1598. description: Successful Response
  1599. content:
  1600. application/json:
  1601. schema:
  1602. $ref: '#/components/schemas/StandardResponse'
  1603. '422':
  1604. description: Validation Error
  1605. content:
  1606. application/json:
  1607. schema:
  1608. $ref: '#/components/schemas/HTTPValidationError'
  1609. /graph_mg/relationship/update:
  1610. post:
  1611. tags:
  1612. - knowledge graph management interface
  1613. summary: Update Relationship
  1614. operationId: update_relationship_graph_mg_relationship_update_post
  1615. requestBody:
  1616. content:
  1617. application/json:
  1618. schema:
  1619. items:
  1620. $ref: '#/components/schemas/UpdateRelationTypeVO'
  1621. type: array
  1622. title: Updates
  1623. required: true
  1624. responses:
  1625. '200':
  1626. description: Successful Response
  1627. content:
  1628. application/json:
  1629. schema:
  1630. $ref: '#/components/schemas/StandardResponse'
  1631. '422':
  1632. description: Validation Error
  1633. content:
  1634. application/json:
  1635. schema:
  1636. $ref: '#/components/schemas/HTTPValidationError'
  1637. components:
  1638. schemas:
  1639. BasicRequest:
  1640. properties:
  1641. action:
  1642. type: string
  1643. title: Action
  1644. id:
  1645. type: string
  1646. title: Id
  1647. params:
  1648. items:
  1649. $ref: '#/components/schemas/BasicRequestParameter'
  1650. type: array
  1651. title: Params
  1652. type: object
  1653. required:
  1654. - action
  1655. - id
  1656. - params
  1657. title: BasicRequest
  1658. BasicRequestParameter:
  1659. properties:
  1660. name:
  1661. type: string
  1662. title: Name
  1663. value:
  1664. anyOf:
  1665. - type: string
  1666. - type: integer
  1667. - type: number
  1668. - type: boolean
  1669. - items:
  1670. type: string
  1671. type: array
  1672. - items:
  1673. type: integer
  1674. type: array
  1675. - items:
  1676. type: number
  1677. type: array
  1678. - items:
  1679. type: boolean
  1680. type: array
  1681. title: Value
  1682. type: object
  1683. required:
  1684. - name
  1685. - value
  1686. title: BasicRequestParameter
  1687. BatchFileUpdate:
  1688. properties:
  1689. files:
  1690. items:
  1691. $ref: '#/components/schemas/FileUpdate'
  1692. type: array
  1693. title: Files
  1694. type: object
  1695. required:
  1696. - files
  1697. title: BatchFileUpdate
  1698. Body_upload_file_file_upload__file_type___job_id__post:
  1699. properties:
  1700. file:
  1701. type: string
  1702. format: binary
  1703. title: File
  1704. type: object
  1705. required:
  1706. - file
  1707. title: Body_upload_file_file_upload__file_type___job_id__post
  1708. Body_upload_files_knowledge_base__kb_id__files__post:
  1709. properties:
  1710. files:
  1711. items:
  1712. type: string
  1713. format: binary
  1714. type: array
  1715. title: Files
  1716. type: object
  1717. required:
  1718. - files
  1719. title: Body_upload_files_knowledge_base__kb_id__files__post
  1720. CreateEntity:
  1721. properties:
  1722. user_id:
  1723. type: integer
  1724. title: User Id
  1725. graph_id:
  1726. type: integer
  1727. title: Graph Id
  1728. label:
  1729. type: string
  1730. title: Label
  1731. name:
  1732. type: string
  1733. title: Name
  1734. properties:
  1735. anyOf:
  1736. - type: object
  1737. - type: 'null'
  1738. title: Properties
  1739. type: object
  1740. required:
  1741. - user_id
  1742. - graph_id
  1743. - label
  1744. - name
  1745. title: CreateEntity
  1746. DeleteEntity:
  1747. properties:
  1748. user_id:
  1749. type: integer
  1750. title: User Id
  1751. graph_id:
  1752. type: integer
  1753. title: Graph Id
  1754. node_id:
  1755. type: integer
  1756. title: Node Id
  1757. type: object
  1758. required:
  1759. - user_id
  1760. - graph_id
  1761. - node_id
  1762. title: DeleteEntity
  1763. EntityVO:
  1764. properties:
  1765. user_id:
  1766. type: integer
  1767. title: User Id
  1768. graph_id:
  1769. type: integer
  1770. title: Graph Id
  1771. label:
  1772. type: string
  1773. title: Label
  1774. node_id:
  1775. type: integer
  1776. title: Node Id
  1777. properties:
  1778. type: object
  1779. title: Properties
  1780. type: object
  1781. required:
  1782. - user_id
  1783. - graph_id
  1784. - label
  1785. - node_id
  1786. - properties
  1787. title: EntityVO
  1788. FileUpdate:
  1789. properties:
  1790. id:
  1791. type: integer
  1792. title: Id
  1793. file_name:
  1794. anyOf:
  1795. - type: string
  1796. - type: 'null'
  1797. title: File Name
  1798. version:
  1799. anyOf:
  1800. - type: string
  1801. - type: 'null'
  1802. title: Version
  1803. author:
  1804. anyOf:
  1805. - type: string
  1806. - type: 'null'
  1807. title: Author
  1808. year:
  1809. anyOf:
  1810. - type: integer
  1811. - type: 'null'
  1812. title: Year
  1813. page_count:
  1814. anyOf:
  1815. - type: integer
  1816. - type: 'null'
  1817. title: Page Count
  1818. creator:
  1819. anyOf:
  1820. - type: string
  1821. - type: 'null'
  1822. title: Creator
  1823. knowledge_type:
  1824. anyOf:
  1825. - type: string
  1826. - type: 'null'
  1827. title: Knowledge Type
  1828. type: object
  1829. required:
  1830. - id
  1831. title: FileUpdate
  1832. FindEntity:
  1833. properties:
  1834. user_id:
  1835. type: integer
  1836. title: User Id
  1837. graph_id:
  1838. type: integer
  1839. title: Graph Id
  1840. node_id:
  1841. type: integer
  1842. title: Node Id
  1843. type: object
  1844. required:
  1845. - user_id
  1846. - graph_id
  1847. - node_id
  1848. title: FindEntity
  1849. HTTPValidationError:
  1850. properties:
  1851. detail:
  1852. items:
  1853. $ref: '#/components/schemas/ValidationError'
  1854. type: array
  1855. title: Detail
  1856. type: object
  1857. title: HTTPValidationError
  1858. KnowledgeBaseCreate:
  1859. properties:
  1860. name:
  1861. type: string
  1862. title: Name
  1863. description:
  1864. anyOf:
  1865. - type: string
  1866. - type: 'null'
  1867. title: Description
  1868. tags:
  1869. anyOf:
  1870. - items:
  1871. type: string
  1872. type: array
  1873. - type: 'null'
  1874. title: Tags
  1875. type: object
  1876. required:
  1877. - name
  1878. title: KnowledgeBaseCreate
  1879. KnowledgeBaseUpdate:
  1880. properties:
  1881. name:
  1882. type: string
  1883. title: Name
  1884. description:
  1885. anyOf:
  1886. - type: string
  1887. - type: 'null'
  1888. title: Description
  1889. tags:
  1890. anyOf:
  1891. - items:
  1892. type: string
  1893. type: array
  1894. - type: 'null'
  1895. title: Tags
  1896. type: object
  1897. required:
  1898. - name
  1899. title: KnowledgeBaseUpdate
  1900. PermissionCreateRequest:
  1901. properties:
  1902. name:
  1903. type: string
  1904. title: Name
  1905. description:
  1906. anyOf:
  1907. - type: string
  1908. - type: 'null'
  1909. title: Description
  1910. menu_name:
  1911. anyOf:
  1912. - type: string
  1913. - type: 'null'
  1914. title: Menu Name
  1915. menu_route:
  1916. anyOf:
  1917. - type: string
  1918. - type: 'null'
  1919. title: Menu Route
  1920. menu_icon:
  1921. anyOf:
  1922. - type: string
  1923. - type: 'null'
  1924. title: Menu Icon
  1925. parent_id:
  1926. anyOf:
  1927. - type: integer
  1928. - type: 'null'
  1929. title: Parent Id
  1930. type: object
  1931. required:
  1932. - name
  1933. title: PermissionCreateRequest
  1934. RelationshipNameVO:
  1935. properties:
  1936. user_id:
  1937. type: integer
  1938. title: User Id
  1939. graph_id:
  1940. type: integer
  1941. title: Graph Id
  1942. relationship_type:
  1943. type: string
  1944. title: Relationship Type
  1945. type: object
  1946. required:
  1947. - user_id
  1948. - graph_id
  1949. - relationship_type
  1950. title: RelationshipNameVO
  1951. RelationshipVO:
  1952. properties:
  1953. user_id:
  1954. type: integer
  1955. title: User Id
  1956. graph_id:
  1957. type: integer
  1958. title: Graph Id
  1959. start_id:
  1960. type: integer
  1961. title: Start Id
  1962. end_id:
  1963. type: integer
  1964. title: End Id
  1965. start_label:
  1966. type: string
  1967. title: Start Label
  1968. end_label:
  1969. type: string
  1970. title: End Label
  1971. relationship_type:
  1972. type: string
  1973. title: Relationship Type
  1974. property:
  1975. anyOf:
  1976. - type: object
  1977. - type: 'null'
  1978. title: Property
  1979. type: object
  1980. required:
  1981. - user_id
  1982. - graph_id
  1983. - start_id
  1984. - end_id
  1985. - start_label
  1986. - end_label
  1987. - relationship_type
  1988. title: RelationshipVO
  1989. ResponseModel:
  1990. properties:
  1991. code:
  1992. type: integer
  1993. title: Code
  1994. message:
  1995. type: string
  1996. title: Message
  1997. data:
  1998. anyOf:
  1999. - type: object
  2000. - items: {}
  2001. type: array
  2002. - type: boolean
  2003. - type: 'null'
  2004. title: Data
  2005. type: object
  2006. required:
  2007. - code
  2008. - message
  2009. - data
  2010. title: ResponseModel
  2011. RoleCreateWithPermissionsRequest:
  2012. properties:
  2013. role_id:
  2014. anyOf:
  2015. - type: integer
  2016. - type: 'null'
  2017. title: Role Id
  2018. name:
  2019. type: string
  2020. title: Name
  2021. description:
  2022. anyOf:
  2023. - type: string
  2024. - type: 'null'
  2025. title: Description
  2026. permission_ids:
  2027. items:
  2028. type: integer
  2029. type: array
  2030. title: Permission Ids
  2031. default: []
  2032. type: object
  2033. required:
  2034. - name
  2035. title: RoleCreateWithPermissionsRequest
  2036. SearchEntity:
  2037. properties:
  2038. user_id:
  2039. type: integer
  2040. title: User Id
  2041. graph_id:
  2042. type: integer
  2043. title: Graph Id
  2044. label:
  2045. type: string
  2046. title: Label
  2047. name:
  2048. type: string
  2049. title: Name
  2050. type: object
  2051. required:
  2052. - user_id
  2053. - graph_id
  2054. - label
  2055. - name
  2056. title: SearchEntity
  2057. StandardResponse:
  2058. properties:
  2059. code:
  2060. type: integer
  2061. title: Code
  2062. default: 200
  2063. message:
  2064. type: string
  2065. title: Message
  2066. default: success
  2067. meta:
  2068. type: object
  2069. title: Meta
  2070. default: {}
  2071. records:
  2072. items: {}
  2073. type: array
  2074. title: Records
  2075. default: []
  2076. total:
  2077. anyOf:
  2078. - type: integer
  2079. - type: 'null'
  2080. title: Total
  2081. type: object
  2082. title: StandardResponse
  2083. SysOrganRequest:
  2084. properties:
  2085. id:
  2086. anyOf:
  2087. - type: integer
  2088. - type: 'null'
  2089. title: Id
  2090. name:
  2091. type: string
  2092. title: Name
  2093. manager:
  2094. anyOf:
  2095. - type: string
  2096. - type: 'null'
  2097. title: Manager
  2098. phone:
  2099. anyOf:
  2100. - type: string
  2101. - type: 'null'
  2102. title: Phone
  2103. parent_id:
  2104. anyOf:
  2105. - type: integer
  2106. - type: 'null'
  2107. title: Parent Id
  2108. type: object
  2109. required:
  2110. - name
  2111. title: SysOrganRequest
  2112. SysUserRoleOrganRequest:
  2113. properties:
  2114. id:
  2115. anyOf:
  2116. - type: integer
  2117. - type: 'null'
  2118. title: Id
  2119. user_id:
  2120. anyOf:
  2121. - type: integer
  2122. - type: 'null'
  2123. title: User Id
  2124. role_id:
  2125. anyOf:
  2126. - type: integer
  2127. - type: 'null'
  2128. title: Role Id
  2129. organ_id:
  2130. anyOf:
  2131. - type: integer
  2132. - type: 'null'
  2133. title: Organ Id
  2134. data_type:
  2135. anyOf:
  2136. - type: integer
  2137. - type: 'null'
  2138. title: Data Type
  2139. user_name:
  2140. anyOf:
  2141. - type: string
  2142. - type: 'null'
  2143. title: User Name
  2144. role_name:
  2145. anyOf:
  2146. - type: string
  2147. - type: 'null'
  2148. title: Role Name
  2149. page:
  2150. anyOf:
  2151. - type: integer
  2152. - type: 'null'
  2153. title: Page
  2154. page_size:
  2155. anyOf:
  2156. - type: integer
  2157. - type: 'null'
  2158. title: Page Size
  2159. type: object
  2160. title: SysUserRoleOrganRequest
  2161. UpdateEntity:
  2162. properties:
  2163. user_id:
  2164. type: integer
  2165. title: User Id
  2166. graph_id:
  2167. type: integer
  2168. title: Graph Id
  2169. node_id:
  2170. type: integer
  2171. title: Node Id
  2172. name:
  2173. type: string
  2174. title: Name
  2175. type: object
  2176. required:
  2177. - user_id
  2178. - graph_id
  2179. - node_id
  2180. - name
  2181. title: UpdateEntity
  2182. UpdateProperty:
  2183. properties:
  2184. user_id:
  2185. type: integer
  2186. title: User Id
  2187. graph_id:
  2188. type: integer
  2189. title: Graph Id
  2190. node_id:
  2191. type: integer
  2192. title: Node Id
  2193. property_name:
  2194. type: string
  2195. title: Property Name
  2196. property_value:
  2197. type: string
  2198. title: Property Value
  2199. type: object
  2200. required:
  2201. - user_id
  2202. - graph_id
  2203. - node_id
  2204. - property_name
  2205. - property_value
  2206. title: UpdateProperty
  2207. UpdateRelationTypeVO:
  2208. properties:
  2209. user_id:
  2210. type: integer
  2211. title: User Id
  2212. graph_id:
  2213. type: integer
  2214. title: Graph Id
  2215. old_relationship_type:
  2216. type: string
  2217. title: Old Relationship Type
  2218. new_relationship_type:
  2219. type: string
  2220. title: New Relationship Type
  2221. type: object
  2222. required:
  2223. - user_id
  2224. - graph_id
  2225. - old_relationship_type
  2226. - new_relationship_type
  2227. title: UpdateRelationTypeVO
  2228. UserRoleAssignmentRequest:
  2229. properties:
  2230. user_id:
  2231. type: integer
  2232. title: User Id
  2233. role_ids:
  2234. items:
  2235. type: integer
  2236. type: array
  2237. title: Role Ids
  2238. type: object
  2239. required:
  2240. - user_id
  2241. - role_ids
  2242. title: UserRoleAssignmentRequest
  2243. ValidationError:
  2244. properties:
  2245. loc:
  2246. items:
  2247. anyOf:
  2248. - type: string
  2249. - type: integer
  2250. type: array
  2251. title: Location
  2252. msg:
  2253. type: string
  2254. title: Message
  2255. type:
  2256. type: string
  2257. title: Error Type
  2258. type: object
  2259. required:
  2260. - loc
  2261. - msg
  2262. - type
  2263. title: ValidationError