openapi.yaml 50 KB

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