agent.openapi.json 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991
  1. {
  2. "openapi": "3.0.3",
  3. "info": {
  4. "title": "默认模块",
  5. "description": "",
  6. "version": "1.0.0"
  7. },
  8. "servers": [
  9. {
  10. "url": "/",
  11. "description": "默认服务器"
  12. }
  13. ],
  14. "tags": [
  15. {
  16. "name": "Agent",
  17. "description": "智能体相关接口"
  18. }
  19. ],
  20. "paths": {
  21. "/api/agent/doEditAgent": {
  22. "post": {
  23. "summary": "智能体编辑",
  24. "description": "",
  25. "tags": ["Agent"],
  26. "parameters": [
  27. {
  28. "name": "Authorization",
  29. "in": "header",
  30. "description": "认证令牌",
  31. "required": false,
  32. "schema": {
  33. "type": "string",
  34. "default": "bpm_client_1473687766939209728",
  35. "example": "bpm_client_1473687766939209728"
  36. }
  37. }
  38. ],
  39. "responses": {
  40. "200": {
  41. "description": "成功响应",
  42. "content": {
  43. "application/json": {
  44. "example": {
  45. "isSuccess": true,
  46. "code": 1,
  47. "result": "20d31522-66e7-463e-81d7-7fb7fd5864f7",
  48. "isAuthorized": true
  49. },
  50. "schema": {
  51. "type": "object",
  52. "properties": {
  53. "isSuccess": {
  54. "type": "boolean"
  55. },
  56. "code": {
  57. "type": "integer",
  58. "format": "int32"
  59. },
  60. "result": {
  61. "type": "string",
  62. "format": "uuid"
  63. },
  64. "isAuthorized": {
  65. "type": "boolean"
  66. }
  67. },
  68. "required": ["isSuccess", "code", "result", "isAuthorized"]
  69. }
  70. }
  71. }
  72. }
  73. }
  74. }
  75. },
  76. "/api/agent/doSaveAgentVariables": {
  77. "post": {
  78. "summary": "保存智能体变量",
  79. "description": "",
  80. "tags": ["Agent"],
  81. "parameters": [
  82. {
  83. "name": "Authorization",
  84. "in": "header",
  85. "description": "认证令牌",
  86. "required": false,
  87. "schema": {
  88. "type": "string",
  89. "default": "bpm_client_1473687766939209728",
  90. "example": "bpm_client_1473687766939209728"
  91. }
  92. }
  93. ],
  94. "requestBody": {
  95. "required": true,
  96. "content": {
  97. "application/json": {
  98. "schema": {
  99. "type": "object",
  100. "properties": {
  101. "appAgentId": {
  102. "type": "string",
  103. "format": "uuid"
  104. },
  105. "conversation_variables": {
  106. "type": "array",
  107. "items": {
  108. "type": "string"
  109. }
  110. },
  111. "env_variables": {
  112. "type": "array",
  113. "items": {
  114. "type": "object",
  115. "properties": {
  116. "name": {
  117. "type": "string"
  118. },
  119. "value": {
  120. "type": "string"
  121. },
  122. "type": {
  123. "type": "string",
  124. "enum": ["string", "number", "boolean", "object", "array"]
  125. }
  126. },
  127. "required": ["name", "value", "type"]
  128. }
  129. }
  130. },
  131. "required": ["appAgentId", "conversation_variables", "env_variables"]
  132. }
  133. }
  134. }
  135. },
  136. "responses": {
  137. "200": {
  138. "description": "成功响应",
  139. "content": {
  140. "application/json": {
  141. "example": {
  142. "isSuccess": true,
  143. "code": 1,
  144. "isAuthorized": true
  145. },
  146. "schema": {
  147. "type": "object",
  148. "properties": {
  149. "isSuccess": {
  150. "type": "boolean"
  151. },
  152. "code": {
  153. "type": "integer",
  154. "format": "int32"
  155. },
  156. "result": {
  157. "type": "string"
  158. },
  159. "isAuthorized": {
  160. "type": "boolean"
  161. }
  162. },
  163. "required": ["isSuccess", "code", "result", "isAuthorized"]
  164. }
  165. }
  166. }
  167. }
  168. }
  169. }
  170. },
  171. "/api/agent/getAgentInfo": {
  172. "post": {
  173. "summary": "获取智能体信息",
  174. "description": "",
  175. "tags": ["Agent"],
  176. "parameters": [
  177. {
  178. "name": "Authorization",
  179. "in": "header",
  180. "description": "认证令牌",
  181. "required": false,
  182. "schema": {
  183. "type": "string",
  184. "default": "bpm_client_1473687766939209728",
  185. "example": "bpm_client_1473687766939209728"
  186. }
  187. }
  188. ],
  189. "requestBody": {
  190. "required": true,
  191. "content": {
  192. "application/json": {
  193. "schema": {
  194. "type": "object",
  195. "properties": {
  196. "id": {
  197. "type": "string",
  198. "format": "uuid"
  199. }
  200. },
  201. "required": ["id"]
  202. }
  203. }
  204. }
  205. },
  206. "responses": {
  207. "200": {
  208. "description": "成功响应",
  209. "content": {
  210. "application/json": {
  211. "example": {
  212. "isSuccess": true,
  213. "code": 1,
  214. "result": {
  215. "conversation_variables": [],
  216. "edges": [],
  217. "env_variables": [
  218. {
  219. "is_require": false,
  220. "name": "api_address",
  221. "type": "string",
  222. "value": "http://shalu-componenttesting-admin-dev.shalu.com"
  223. }
  224. ],
  225. "id": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  226. "name": "测试智能体",
  227. "nodes": [
  228. {
  229. "appAgentId": "b3a4aabb-a6b8-47f3-8a32-f45930f7d7b8",
  230. "creationTime": "2026-01-28 10:24:45",
  231. "creatorUserId": "7F8A2BFE-402D-4499-9BB8-2EF7FFC7B993",
  232. "data": {
  233. "outputs": [
  234. {
  235. "name": "body",
  236. "describe": "响应内容",
  237. "type": "string"
  238. },
  239. {
  240. "name": "status_code",
  241. "describe": "响应状态码",
  242. "type": "number"
  243. },
  244. {
  245. "name": "headers",
  246. "describe": "响应头列表 JSON",
  247. "type": "object"
  248. }
  249. ],
  250. "output_can_alter": false,
  251. "variables": [],
  252. "method": "post",
  253. "ssl_verify": false,
  254. "isInIteration": false,
  255. "default_value": [],
  256. "body": {
  257. "data": [
  258. {
  259. "type": "text",
  260. "value": "{\"name\":\"测试智能体\",\"profilePhoto\":\"1111\",\"remark\":\"描述\",\"viewPort\":{\"x\":10,\"y\":\"10\",\"zoom\":1}}",
  261. "key": ""
  262. }
  263. ],
  264. "type": "json"
  265. },
  266. "params": [],
  267. "title": "HTTP 请求",
  268. "type": "http-request",
  269. "error_strategy": "none",
  270. "retry_config": {
  271. "max_retries": 3,
  272. "retry_enabled": false,
  273. "retry_interval": 100
  274. },
  275. "url": "http://shalu-componenttesting-admin-dev.shalu.com/api/agent/doEditAgent",
  276. "authorization": {
  277. "type": "none",
  278. "config": {
  279. "api_key": "",
  280. "header": "",
  281. "type": ""
  282. }
  283. },
  284. "timeout_config": {
  285. "max_write_timeout": 0,
  286. "max_read_timeout": 0,
  287. "max_connect_timeout": 0
  288. },
  289. "heads": [
  290. {
  291. "name": "Authorization",
  292. "value": "bpm_client_1473108597171818496"
  293. }
  294. ],
  295. "selected": true,
  296. "desc": "",
  297. "isInLoop": false
  298. },
  299. "height": 40,
  300. "id": "492048da-6f33-4a36-adc5-cff4b973b053",
  301. "isDeleted": false,
  302. "position": {
  303. "x": 20,
  304. "y": 30
  305. },
  306. "selected": true,
  307. "type": "custom",
  308. "updateTime": "2026-01-28 11:00:09",
  309. "width": 20,
  310. "zIndex": 1
  311. }
  312. ],
  313. "profilePhoto": "1111",
  314. "viewPort": {
  315. "x": 10,
  316. "y": 10,
  317. "zoom": 1
  318. }
  319. },
  320. "isAuthorized": true
  321. },
  322. "schema": {
  323. "type": "object",
  324. "properties": {
  325. "isSuccess": {
  326. "type": "boolean"
  327. },
  328. "code": {
  329. "type": "integer",
  330. "format": "int32"
  331. },
  332. "result": {
  333. "type": "object",
  334. "properties": {
  335. "conversation_variables": {
  336. "type": "array",
  337. "items": {
  338. "type": "string"
  339. }
  340. },
  341. "edges": {
  342. "type": "array",
  343. "items": {
  344. "type": "string"
  345. }
  346. },
  347. "env_variables": {
  348. "type": "array",
  349. "items": {
  350. "type": "object",
  351. "properties": {
  352. "is_require": {
  353. "type": "boolean"
  354. },
  355. "name": {
  356. "type": "string"
  357. },
  358. "type": {
  359. "type": "string",
  360. "enum": ["string", "number", "boolean", "object", "array"]
  361. },
  362. "value": {
  363. "type": "string"
  364. }
  365. },
  366. "required": ["name", "type", "value"]
  367. }
  368. },
  369. "id": {
  370. "type": "string",
  371. "format": "uuid"
  372. },
  373. "name": {
  374. "type": "string"
  375. },
  376. "nodes": {
  377. "type": "array",
  378. "items": {
  379. "$ref": "#/components/schemas/AgentNode"
  380. }
  381. },
  382. "profilePhoto": {
  383. "type": "string"
  384. },
  385. "viewPort": {
  386. "type": "object",
  387. "properties": {
  388. "x": {
  389. "type": "integer"
  390. },
  391. "y": {
  392. "type": "integer"
  393. },
  394. "zoom": {
  395. "type": "integer"
  396. }
  397. },
  398. "required": ["x", "y", "zoom"]
  399. }
  400. },
  401. "required": ["id", "name", "nodes", "profilePhoto", "viewPort"]
  402. },
  403. "isAuthorized": {
  404. "type": "boolean"
  405. }
  406. },
  407. "required": ["isSuccess", "code", "result", "isAuthorized"]
  408. }
  409. }
  410. }
  411. }
  412. }
  413. }
  414. },
  415. "/api/agent/doNewAgentNode": {
  416. "post": {
  417. "summary": "智能体添加节点",
  418. "description": "",
  419. "tags": ["Agent"],
  420. "parameters": [
  421. {
  422. "name": "Authorization",
  423. "in": "header",
  424. "description": "认证令牌",
  425. "required": false,
  426. "schema": {
  427. "type": "string",
  428. "default": "bpm_client_1473687766939209728",
  429. "example": "bpm_client_1473687766939209728"
  430. }
  431. }
  432. ],
  433. "requestBody": {
  434. "required": true,
  435. "content": {
  436. "application/json": {
  437. "schema": {
  438. "type": "object",
  439. "properties": {
  440. "appAgentId": {
  441. "type": "string",
  442. "format": "uuid"
  443. },
  444. "position": {
  445. "type": "object",
  446. "properties": {
  447. "x": {
  448. "type": "integer"
  449. },
  450. "y": {
  451. "type": "integer"
  452. }
  453. },
  454. "required": ["x", "y"]
  455. },
  456. "width": {
  457. "type": "integer"
  458. },
  459. "height": {
  460. "type": "integer"
  461. },
  462. "selected": {
  463. "type": "boolean"
  464. },
  465. "nodeType": {
  466. "type": "string",
  467. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  468. },
  469. "zIndex": {
  470. "type": "integer"
  471. },
  472. "parentId": {
  473. "type": "string",
  474. "format": "uuid"
  475. }
  476. },
  477. "required": [
  478. "appAgentId",
  479. "parentId",
  480. "position",
  481. "width",
  482. "height",
  483. "selected",
  484. "nodeType",
  485. "zIndex"
  486. ]
  487. }
  488. }
  489. }
  490. },
  491. "responses": {
  492. "200": {
  493. "description": "成功响应",
  494. "content": {
  495. "application/json": {
  496. "example": {
  497. "isSuccess": true,
  498. "code": 1,
  499. "isAuthorized": true
  500. },
  501. "schema": {
  502. "type": "object",
  503. "properties": {
  504. "isSuccess": {
  505. "type": "boolean"
  506. },
  507. "code": {
  508. "type": "integer",
  509. "format": "int32"
  510. },
  511. "isAuthorized": {
  512. "type": "boolean"
  513. }
  514. },
  515. "required": ["isSuccess", "code", "isAuthorized"]
  516. }
  517. }
  518. }
  519. }
  520. }
  521. }
  522. },
  523. "/api/agent/doUpdateAgentNode": {
  524. "post": {
  525. "summary": "更新智能体节点",
  526. "description": "",
  527. "tags": ["Agent"],
  528. "parameters": [
  529. {
  530. "name": "Authorization",
  531. "in": "header",
  532. "description": "认证令牌",
  533. "required": false,
  534. "schema": {
  535. "type": "string",
  536. "default": "bpm_client_1473687766939209728",
  537. "example": "bpm_client_1473687766939209728"
  538. }
  539. }
  540. ],
  541. "requestBody": {
  542. "required": true,
  543. "content": {
  544. "application/json": {
  545. "schema": {
  546. "type": "object",
  547. "properties": {
  548. "id": {
  549. "type": "string",
  550. "format": "uuid"
  551. },
  552. "appAgentId": {
  553. "type": "string",
  554. "format": "uuid"
  555. },
  556. "parentId": {
  557. "type": "string",
  558. "format": "uuid"
  559. },
  560. "position": {
  561. "type": "object",
  562. "properties": {
  563. "x": {
  564. "type": "integer"
  565. },
  566. "y": {
  567. "type": "integer"
  568. }
  569. },
  570. "required": ["x", "y"]
  571. },
  572. "width": {
  573. "type": "integer"
  574. },
  575. "height": {
  576. "type": "integer"
  577. },
  578. "selected": {
  579. "type": "boolean"
  580. },
  581. "nodeType": {
  582. "type": "string",
  583. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  584. },
  585. "zIndex": {
  586. "type": "integer"
  587. },
  588. "data": {
  589. "type": "object"
  590. }
  591. },
  592. "required": [
  593. "id",
  594. "appAgentId",
  595. "parentId",
  596. "position",
  597. "width",
  598. "height",
  599. "selected",
  600. "nodeType",
  601. "zIndex",
  602. "data"
  603. ]
  604. }
  605. }
  606. }
  607. },
  608. "responses": {
  609. "200": {
  610. "description": "成功响应",
  611. "content": {
  612. "application/json": {
  613. "example": {
  614. "isSuccess": true,
  615. "code": 1,
  616. "isAuthorized": true
  617. },
  618. "schema": {
  619. "type": "object",
  620. "properties": {
  621. "isSuccess": {
  622. "type": "boolean"
  623. },
  624. "code": {
  625. "type": "integer",
  626. "format": "int32"
  627. },
  628. "isAuthorized": {
  629. "type": "boolean"
  630. }
  631. },
  632. "required": ["isSuccess", "code", "isAuthorized"]
  633. }
  634. }
  635. }
  636. }
  637. }
  638. }
  639. },
  640. "/api/agent/doTestNodeRunner": {
  641. "post": {
  642. "summary": "测试运行智能体节点",
  643. "description": "",
  644. "tags": ["Agent"],
  645. "parameters": [
  646. {
  647. "name": "Authorization",
  648. "in": "header",
  649. "description": "认证令牌",
  650. "required": false,
  651. "schema": {
  652. "type": "string",
  653. "default": "bpm_client_1473687766939209728",
  654. "example": "bpm_client_1473687766939209728"
  655. }
  656. }
  657. ],
  658. "requestBody": {
  659. "required": true,
  660. "content": {
  661. "application/json": {
  662. "schema": {
  663. "type": "object",
  664. "properties": {
  665. "id": {
  666. "type": "string",
  667. "format": "uuid"
  668. },
  669. "appAgentId": {
  670. "type": "string",
  671. "format": "uuid"
  672. }
  673. },
  674. "required": ["id", "appAgentId"]
  675. }
  676. }
  677. }
  678. },
  679. "responses": {
  680. "200": {
  681. "description": "成功响应",
  682. "content": {
  683. "application/json": {
  684. "example": {
  685. "isSuccess": true,
  686. "code": 1,
  687. "isAuthorized": true
  688. },
  689. "schema": {
  690. "type": "object",
  691. "properties": {
  692. "isSuccess": {
  693. "type": "boolean"
  694. },
  695. "code": {
  696. "type": "integer",
  697. "format": "int32"
  698. },
  699. "isAuthorized": {
  700. "type": "boolean"
  701. }
  702. },
  703. "required": ["isSuccess", "code", "isAuthorized"]
  704. }
  705. }
  706. }
  707. }
  708. }
  709. }
  710. }
  711. },
  712. "components": {
  713. "schemas": {
  714. "AgentNode": {
  715. "type": "object",
  716. "properties": {
  717. "appAgentId": {
  718. "type": "string",
  719. "format": "uuid"
  720. },
  721. "creationTime": {
  722. "type": "string",
  723. "format": "date-time"
  724. },
  725. "creatorUserId": {
  726. "type": "string",
  727. "format": "uuid"
  728. },
  729. "data": {
  730. "$ref": "#/components/schemas/NodeData"
  731. },
  732. "height": {
  733. "type": "integer"
  734. },
  735. "id": {
  736. "type": "string",
  737. "format": "uuid"
  738. },
  739. "isDeleted": {
  740. "type": "boolean"
  741. },
  742. "position": {
  743. "type": "object",
  744. "properties": {
  745. "x": {
  746. "type": "integer"
  747. },
  748. "y": {
  749. "type": "integer"
  750. }
  751. },
  752. "required": ["x", "y"]
  753. },
  754. "selected": {
  755. "type": "boolean"
  756. },
  757. "type": {
  758. "type": "string",
  759. "enum": ["custom", "start", "end", "condition", "task", "http-request"]
  760. },
  761. "updateTime": {
  762. "type": "string",
  763. "format": "date-time"
  764. },
  765. "width": {
  766. "type": "integer"
  767. },
  768. "zIndex": {
  769. "type": "integer"
  770. }
  771. },
  772. "required": [
  773. "appAgentId",
  774. "creationTime",
  775. "creatorUserId",
  776. "data",
  777. "id",
  778. "position",
  779. "type"
  780. ]
  781. },
  782. "NodeData": {
  783. "type": "object",
  784. "properties": {
  785. "outputs": {
  786. "type": "array",
  787. "items": {
  788. "type": "object",
  789. "properties": {
  790. "name": {
  791. "type": "string"
  792. },
  793. "describe": {
  794. "type": "string"
  795. },
  796. "type": {
  797. "type": "string",
  798. "enum": ["string", "number", "boolean", "object", "array"]
  799. }
  800. },
  801. "required": ["name", "describe", "type"]
  802. }
  803. },
  804. "output_can_alter": {
  805. "type": "boolean"
  806. },
  807. "variables": {
  808. "type": "array",
  809. "items": {
  810. "type": "string"
  811. }
  812. },
  813. "method": {
  814. "type": "string",
  815. "enum": ["get", "post", "put", "delete", "patch", "head", "options"]
  816. },
  817. "ssl_verify": {
  818. "type": "boolean"
  819. },
  820. "isInIteration": {
  821. "type": "boolean"
  822. },
  823. "default_value": {
  824. "type": "array",
  825. "items": {
  826. "type": "string"
  827. }
  828. },
  829. "body": {
  830. "$ref": "#/components/schemas/RequestBody"
  831. },
  832. "params": {
  833. "type": "array",
  834. "items": {
  835. "type": "string"
  836. }
  837. },
  838. "title": {
  839. "type": "string"
  840. },
  841. "type": {
  842. "type": "string",
  843. "enum": ["http-request", "condition", "task"]
  844. },
  845. "error_strategy": {
  846. "type": "string",
  847. "enum": ["none", "retry", "abort", "continue"]
  848. },
  849. "retry_config": {
  850. "type": "object",
  851. "properties": {
  852. "max_retries": {
  853. "type": "integer",
  854. "minimum": 0,
  855. "maximum": 10
  856. },
  857. "retry_enabled": {
  858. "type": "boolean"
  859. },
  860. "retry_interval": {
  861. "type": "integer",
  862. "minimum": 0,
  863. "maximum": 5000
  864. }
  865. },
  866. "required": ["max_retries", "retry_enabled", "retry_interval"]
  867. },
  868. "url": {
  869. "type": "string",
  870. "format": "uri"
  871. },
  872. "authorization": {
  873. "type": "object",
  874. "properties": {
  875. "type": {
  876. "type": "string",
  877. "enum": ["none", "bearer", "basic", "api-key"]
  878. },
  879. "config": {
  880. "type": "object",
  881. "properties": {
  882. "api_key": {
  883. "type": "string"
  884. },
  885. "header": {
  886. "type": "string"
  887. },
  888. "type": {
  889. "type": "string"
  890. }
  891. }
  892. }
  893. },
  894. "required": ["type", "config"]
  895. },
  896. "timeout_config": {
  897. "type": "object",
  898. "properties": {
  899. "max_write_timeout": {
  900. "type": "integer",
  901. "minimum": 0
  902. },
  903. "max_read_timeout": {
  904. "type": "integer",
  905. "minimum": 0
  906. },
  907. "max_connect_timeout": {
  908. "type": "integer",
  909. "minimum": 0
  910. }
  911. },
  912. "required": ["max_write_timeout", "max_read_timeout", "max_connect_timeout"]
  913. },
  914. "heads": {
  915. "type": "array",
  916. "items": {
  917. "$ref": "#/components/schemas/HttpHeader"
  918. }
  919. },
  920. "selected": {
  921. "type": "boolean"
  922. },
  923. "desc": {
  924. "type": "string"
  925. },
  926. "isInLoop": {
  927. "type": "boolean"
  928. }
  929. },
  930. "required": ["outputs", "method", "title", "type", "url"]
  931. },
  932. "RequestBody": {
  933. "type": "object",
  934. "properties": {
  935. "data": {
  936. "type": "array",
  937. "items": {
  938. "$ref": "#/components/schemas/RequestDataItem"
  939. }
  940. },
  941. "type": {
  942. "type": "string",
  943. "enum": ["json", "form-data", "x-www-form-urlencoded", "raw", "binary"]
  944. }
  945. },
  946. "required": ["data", "type"]
  947. },
  948. "RequestDataItem": {
  949. "type": "object",
  950. "properties": {
  951. "type": {
  952. "type": "string",
  953. "enum": ["text", "file", "json"]
  954. },
  955. "value": {
  956. "type": "string"
  957. },
  958. "key": {
  959. "type": "string"
  960. }
  961. },
  962. "required": ["type", "value"]
  963. },
  964. "HttpHeader": {
  965. "type": "object",
  966. "properties": {
  967. "name": {
  968. "type": "string"
  969. },
  970. "value": {
  971. "type": "string"
  972. }
  973. },
  974. "required": ["name", "value"]
  975. }
  976. },
  977. "securitySchemes": {
  978. "ApiKeyAuth": {
  979. "type": "apiKey",
  980. "in": "header",
  981. "name": "Authorization"
  982. }
  983. }
  984. },
  985. "security": [
  986. {
  987. "ApiKeyAuth": []
  988. }
  989. ]
  990. }