Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 26.07 KB | None | 0 0
  1. Request:
  2. {
  3. "info": {
  4. "_postman_id": "6c3cc906-c32f-418c-b8d2-975b8158051b",
  5. "name": "DCCM-WF-ENGINE",
  6. "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  7. },
  8. "item": [
  9. {
  10. "name": "/auth/login",
  11. "event": [
  12. {
  13. "listen": "test",
  14. "script": {
  15. "id": "546b83b5-a706-4ef0-949e-d2a4b490da84",
  16. "exec": [
  17. "var data = JSON.parse(responseBody);",
  18. "",
  19. "pm.environment.set('x-xsrf-token', data.xsrf.uuId);",
  20. "pm.environment.set('jwt', data.jwt.value);"
  21. ],
  22. "type": "text/javascript"
  23. }
  24. }
  25. ],
  26. "request": {
  27. "method": "POST",
  28. "header": [
  29. {
  30. "key": "Content-Type",
  31. "value": "application/json",
  32. "type": "text"
  33. },
  34. {
  35. "key": "Accept",
  36. "value": "application/json",
  37. "type": "text"
  38. }
  39. ],
  40. "body": {
  41. "mode": "raw",
  42. "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"identity.check\",\r\n \"params\": { \r\n \t\"username\": \"sa\",\r\n \t\"password\": \"123\",\r\n \t\"channel\": \"web\"\r\n }\r\n}"
  43. },
  44. "url": {
  45. "raw": "http://localhost:3002/api/v1/engine/auth/login",
  46. "protocol": "http",
  47. "host": [
  48. "localhost"
  49. ],
  50. "port": "3002",
  51. "path": [
  52. "api",
  53. "v1",
  54. "engine",
  55. "auth",
  56. "login"
  57. ]
  58. }
  59. },
  60. "response": []
  61. },
  62. {
  63. "name": "/auth/check",
  64. "event": [
  65. {
  66. "listen": "test",
  67. "script": {
  68. "id": "bfaf5b6e-3fa9-431d-b568-0043768356ef",
  69. "exec": [
  70. "var data = JSON.parse(responseBody);",
  71. "",
  72. "pm.environment.set('x-xsrf-token', data.xsrf.uuId);",
  73. "pm.environment.set('jwt', data.jwt.value);"
  74. ],
  75. "type": "text/javascript"
  76. }
  77. }
  78. ],
  79. "request": {
  80. "method": "POST",
  81. "header": [
  82. {
  83. "key": "Content-Type",
  84. "value": "application/json",
  85. "type": "text"
  86. },
  87. {
  88. "key": "Accept",
  89. "value": "application/json",
  90. "type": "text"
  91. },
  92. {
  93. "key": "Cookie",
  94. "value": "jwt={{jwt}}",
  95. "type": "text"
  96. },
  97. {
  98. "key": "Cookie",
  99. "value": "xsrf-token={{x-xsrf-token}}",
  100. "type": "text"
  101. },
  102. {
  103. "key": "x-xsrf-token",
  104. "value": "{{x-xsrf-token}}",
  105. "type": "text"
  106. }
  107. ],
  108. "body": {
  109. "mode": "raw",
  110. "raw": "{\r\n \"id\": 1,\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"identity.check\",\r\n \"params\": { \r\n \t\"channel\": \"web\"\r\n }\r\n}"
  111. },
  112. "url": {
  113. "raw": "http://localhost:3002/api/v1/engine/auth/check",
  114. "protocol": "http",
  115. "host": [
  116. "localhost"
  117. ],
  118. "port": "3002",
  119. "path": [
  120. "api",
  121. "v1",
  122. "engine",
  123. "auth",
  124. "check"
  125. ]
  126. }
  127. },
  128. "response": []
  129. },
  130. {
  131. "name": "/auth/logout",
  132. "event": [
  133. {
  134. "listen": "test",
  135. "script": {
  136. "id": "ca960adc-437c-4a5b-a2ed-6491f953ed57",
  137. "exec": [
  138. "var data = JSON.parse(responseBody);",
  139. "",
  140. "pm.environment.set('x-xsrf-token', data.xsrf.uuId);",
  141. "pm.environment.set('jwt', data.jwt.value);"
  142. ],
  143. "type": "text/javascript"
  144. }
  145. }
  146. ],
  147. "request": {
  148. "method": "POST",
  149. "header": [
  150. {
  151. "key": "Content-Type",
  152. "value": "application/json",
  153. "type": "text"
  154. },
  155. {
  156. "key": "Accept",
  157. "value": "application/json",
  158. "type": "text"
  159. },
  160. {
  161. "key": "Cookie",
  162. "value": "jwt={{jwt}}",
  163. "type": "text"
  164. },
  165. {
  166. "key": "Cookie",
  167. "value": "xsrf-token={{x-xsrf-token}}",
  168. "type": "text"
  169. },
  170. {
  171. "key": "x-xsrf-token",
  172. "value": "{{x-xsrf-token}}",
  173. "type": "text"
  174. }
  175. ],
  176. "body": {
  177. "mode": "raw",
  178. "raw": "{\r\n\t\"jsonrpc\": \"2.0\",\r\n\t\"method\": \"identity.closeSession\",\r\n\t\"id\": 1,\r\n\t\"params\": {\r\n\t}\r\n}"
  179. },
  180. "url": {
  181. "raw": "http://localhost:3002/api/v1/engine/auth/logout",
  182. "protocol": "http",
  183. "host": [
  184. "localhost"
  185. ],
  186. "port": "3002",
  187. "path": [
  188. "api",
  189. "v1",
  190. "engine",
  191. "auth",
  192. "logout"
  193. ]
  194. }
  195. },
  196. "response": []
  197. },
  198. {
  199. "name": "/api/docs",
  200. "request": {
  201. "method": "GET",
  202. "header": [],
  203. "body": {
  204. "mode": "raw",
  205. "raw": ""
  206. },
  207. "url": {
  208. "raw": "http://localhost:3002/docs/api-docs",
  209. "protocol": "http",
  210. "host": [
  211. "localhost"
  212. ],
  213. "port": "3002",
  214. "path": [
  215. "docs",
  216. "api-docs"
  217. ]
  218. }
  219. },
  220. "response": []
  221. },
  222. {
  223. "name": "/workflow/add",
  224. "request": {
  225. "method": "POST",
  226. "header": [
  227. {
  228. "key": "Content-Type",
  229. "value": "application/json",
  230. "type": "text"
  231. },
  232. {
  233. "key": "Accept",
  234. "value": "application/json",
  235. "type": "text"
  236. },
  237. {
  238. "key": "Cookie",
  239. "value": "jwt={{jwt}}",
  240. "type": "text"
  241. },
  242. {
  243. "key": "Cookie",
  244. "value": "xsrf-token={{x-xsrf-token}}",
  245. "type": "text"
  246. },
  247. {
  248. "key": "x-xsrf-token",
  249. "value": "{{x-xsrf-token}}",
  250. "type": "text"
  251. }
  252. ],
  253. "body": {
  254. "mode": "raw",
  255. "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"workflow.add\",\r\n \"params\": {\r\n \t\"workflowName\" : \"start\",\r\n \t\"defaultStatusId\": 30\r\n }\r\n}"
  256. },
  257. "url": {
  258. "raw": "http://localhost:3002/api/v1/engine/workflow/add",
  259. "protocol": "http",
  260. "host": [
  261. "localhost"
  262. ],
  263. "port": "3002",
  264. "path": [
  265. "api",
  266. "v1",
  267. "engine",
  268. "workflow",
  269. "add"
  270. ]
  271. }
  272. },
  273. "response": []
  274. },
  275. {
  276. "name": "/consent/get",
  277. "request": {
  278. "method": "POST",
  279. "header": [
  280. {
  281. "key": "Content-Type",
  282. "type": "text",
  283. "value": "application/json"
  284. },
  285. {
  286. "key": "Accept",
  287. "type": "text",
  288. "value": "application/json"
  289. },
  290. {
  291. "key": "Cookie",
  292. "type": "text",
  293. "value": "jwt={{jwt}}"
  294. },
  295. {
  296. "key": "x-xsrf-token",
  297. "type": "text",
  298. "value": "{{x-xsrf-token}}",
  299. "disabled": true
  300. }
  301. ],
  302. "body": {
  303. "mode": "raw",
  304. "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"engine.consent.get\",\r\n \"params\": {}\r\n}"
  305. },
  306. "url": {
  307. "raw": "http://localhost:3002/api/v1/engine/consent/get/1",
  308. "protocol": "http",
  309. "host": [
  310. "localhost"
  311. ],
  312. "port": "3002",
  313. "path": [
  314. "api",
  315. "v1",
  316. "engine",
  317. "consent",
  318. "get",
  319. "1"
  320. ]
  321. }
  322. },
  323. "response": []
  324. },
  325. {
  326. "name": "/consent/fetch",
  327. "request": {
  328. "method": "POST",
  329. "header": [
  330. {
  331. "key": "Content-Type",
  332. "type": "text",
  333. "value": "application/json"
  334. },
  335. {
  336. "key": "Accept",
  337. "type": "text",
  338. "value": "application/json"
  339. },
  340. {
  341. "key": "Cookie",
  342. "type": "text",
  343. "value": "jwt={{jwt}}"
  344. },
  345. {
  346. "key": "x-xsrf-token",
  347. "type": "text",
  348. "value": "{{x-xsrf-token}}",
  349. "disabled": true
  350. }
  351. ],
  352. "body": {
  353. "mode": "raw",
  354. "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"engine.consent.fetch\",\r\n \"params\": {\r\n \t\"paging\": {\r\n \"pageNumber\": 0,\r\n \"pageSize\": 1\r\n }\r\n }\r\n}"
  355. },
  356. "url": {
  357. "raw": "http://localhost:3002/api/v1/engine/consent/fetch",
  358. "protocol": "http",
  359. "host": [
  360. "localhost"
  361. ],
  362. "port": "3002",
  363. "path": [
  364. "api",
  365. "v1",
  366. "engine",
  367. "consent",
  368. "fetch"
  369. ]
  370. }
  371. },
  372. "response": []
  373. },
  374. {
  375. "name": "/consent/bulk-export",
  376. "request": {
  377. "method": "POST",
  378. "header": [
  379. {
  380. "key": "Content-Type",
  381. "type": "text",
  382. "value": "application/json"
  383. },
  384. {
  385. "key": "Accept",
  386. "type": "text",
  387. "value": "application/json"
  388. },
  389. {
  390. "key": "Cookie",
  391. "type": "text",
  392. "value": "jwt={{jwt}}"
  393. },
  394. {
  395. "key": "x-xsrf-token",
  396. "type": "text",
  397. "value": "{{x-xsrf-token}}",
  398. "disabled": true
  399. }
  400. ],
  401. "body": {
  402. "mode": "raw",
  403. "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"engine.consent.export\",\r\n \"params\": {\r\n\t \"dataSubjectCategory\": \"Customers\",\r\n\t \"legalEntity\": \"Software Group\"\r\n }\r\n}"
  404. },
  405. "url": {
  406. "raw": "http://localhost:3002/api/v1/engine/consent/bulk-export",
  407. "protocol": "http",
  408. "host": [
  409. "localhost"
  410. ],
  411. "port": "3002",
  412. "path": [
  413. "api",
  414. "v1",
  415. "engine",
  416. "consent",
  417. "bulk-export"
  418. ]
  419. }
  420. },
  421. "response": []
  422. },
  423. {
  424. "name": "/consent/get/{dataSubjectId}/latest",
  425. "request": {
  426. "method": "POST",
  427. "header": [
  428. {
  429. "key": "Content-Type",
  430. "type": "text",
  431. "value": "application/json"
  432. },
  433. {
  434. "key": "Accept",
  435. "type": "text",
  436. "value": "application/json"
  437. },
  438. {
  439. "key": "Cookie",
  440. "type": "text",
  441. "value": "jwt={{jwt}}"
  442. },
  443. {
  444. "key": "x-xsrf-token",
  445. "type": "text",
  446. "value": "{{x-xsrf-token}}",
  447. "disabled": true
  448. }
  449. ],
  450. "body": {
  451. "mode": "raw",
  452. "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"engine.consent.latest\",\r\n \"params\": {\r\n }\r\n}"
  453. },
  454. "url": {
  455. "raw": "http://localhost:3002/api/v1/engine/consent/get/1/latest",
  456. "protocol": "http",
  457. "host": [
  458. "localhost"
  459. ],
  460. "port": "3002",
  461. "path": [
  462. "api",
  463. "v1",
  464. "engine",
  465. "consent",
  466. "get",
  467. "1",
  468. "latest"
  469. ]
  470. }
  471. },
  472. "response": []
  473. },
  474. {
  475. "name": "/consent/add",
  476. "request": {
  477. "method": "POST",
  478. "header": [
  479. {
  480. "key": "Content-Type",
  481. "type": "text",
  482. "value": "application/json"
  483. },
  484. {
  485. "key": "Accept",
  486. "type": "text",
  487. "value": "application/json"
  488. },
  489. {
  490. "key": "Cookie",
  491. "type": "text",
  492. "value": "jwt={{jwt}}"
  493. },
  494. {
  495. "key": "x-xsrf-token",
  496. "type": "text",
  497. "value": "{{x-xsrf-token}}",
  498. "disabled": true
  499. }
  500. ],
  501. "body": {
  502. "mode": "raw",
  503. "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"engine.consent.add\",\r\n \"params\": {\r\n }\r\n}"
  504. },
  505. "url": {
  506. "raw": "http://localhost:3002/api/v1/engine/consent/add",
  507. "protocol": "http",
  508. "host": [
  509. "localhost"
  510. ],
  511. "port": "3002",
  512. "path": [
  513. "api",
  514. "v1",
  515. "engine",
  516. "consent",
  517. "add"
  518. ]
  519. }
  520. },
  521. "response": []
  522. },
  523. {
  524. "name": "/consent/bulk-import",
  525. "request": {
  526. "method": "POST",
  527. "header": [
  528. {
  529. "key": "Content-Type",
  530. "type": "text",
  531. "value": "application/json"
  532. },
  533. {
  534. "key": "Accept",
  535. "type": "text",
  536. "value": "application/json"
  537. },
  538. {
  539. "key": "Cookie",
  540. "type": "text",
  541. "value": "jwt={{jwt}}"
  542. },
  543. {
  544. "key": "x-xsrf-token",
  545. "type": "text",
  546. "value": "{{x-xsrf-token}}",
  547. "disabled": true
  548. }
  549. ],
  550. "body": {
  551. "mode": "raw",
  552. "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"engine.consent.import\",\r\n \"params\": {\r\n \"consents\": [{\r\n \"consentCategory\": \"Direct Marketing E-mail\",\r\n \"dataSubjectId\": 6321632,\r\n \"dataSubjectCategory\": \"Employees\",\r\n \"legalEntity\": \"Software Group\",\r\n \"egn\": \"1231322131\",\r\n \"firstName\": \"Ivan\",\r\n \"middleName\": \"Ivanov\",\r\n \"lastName\": \"Ivanov\",\r\n \"email\": \"ivan@example.com\",\r\n \"phone\": \"+32123132\",\r\n \"documentType\": \"Personal ID\",\r\n \"documentId\": 62311223,\r\n \"channel\": \"Mobile Banking\",\r\n \"consentFlag\": \"yes\",\r\n \"branchName\": \"Varna Center 1\",\r\n \"consentText\": \"string\"\r\n }, {\r\n \"consentCategory\": \"Direct Marketing E-mail\",\r\n \"dataSubjectId\": 123,\r\n \"dataSubjectCategory\": \"Customers\",\r\n \"legalEntity\": \"Software Group\",\r\n \"firstName\": \"Osthe\",\r\n \"middleName\": \"Edin\",\r\n \"lastName\": \"Nqkuv\",\r\n \"email\": \"nqkuv@example.com\",\r\n \"phone\": \"+32123132\",\r\n \"documentType\": \"Personal ID\",\r\n \"documentId\": 62311223,\r\n \"channel\": \"Mobile Banking\",\r\n \"consentFlag\": \"yes\",\r\n \"branchName\": \"Varna Center 1\",\r\n \"consentText\": \"string\"\r\n }]\r\n }\r\n}"
  553. },
  554. "url": {
  555. "raw": "http://localhost:3002/api/v1/engine/consent/bulk-import",
  556. "protocol": "http",
  557. "host": [
  558. "localhost"
  559. ],
  560. "port": "3002",
  561. "path": [
  562. "api",
  563. "v1",
  564. "engine",
  565. "consent",
  566. "bulk-import"
  567. ]
  568. }
  569. },
  570. "response": []
  571. },
  572. {
  573. "name": "/consent/import",
  574. "request": {
  575. "method": "POST",
  576. "header": [
  577. {
  578. "key": "Content-Type",
  579. "type": "text",
  580. "value": "application/json"
  581. },
  582. {
  583. "key": "Accept",
  584. "type": "text",
  585. "value": "application/json"
  586. },
  587. {
  588. "key": "Cookie",
  589. "type": "text",
  590. "value": "jwt={{jwt}}"
  591. },
  592. {
  593. "key": "x-xsrf-token",
  594. "type": "text",
  595. "value": "{{x-xsrf-token}}",
  596. "disabled": true
  597. }
  598. ],
  599. "body": {
  600. "mode": "raw",
  601. "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"engine.consent.import\",\r\n \"params\": {\r\n \"consentCategory\": \"Direct Marketing E-mail\",\r\n \"dataSubjectId\": 6321632,\r\n \"dataSubjectCategory\": \"Employees\",\r\n \"legalEntity\": \"Software Group\",\r\n \"firstName\": \"Ivan\",\r\n \"middleName\": \"Ivanov\",\r\n \"lastName\": \"Ivanov\",\r\n \"email\": \"ivan@example.com\",\r\n \"phone\": \"+32123132\",\r\n \"documentType\": \"Personal ID\",\r\n \"documentId\": 62311223,\r\n \"channel\": \"Mobile Banking\",\r\n \"consentFlag\": \"yes\",\r\n \"branchName\": \"Varna Center 1\",\r\n \"consentText\": \"string\"\r\n }\r\n}"
  602. },
  603. "url": {
  604. "raw": "http://localhost:3002/api/v1/engine/consent/import",
  605. "protocol": "http",
  606. "host": [
  607. "localhost"
  608. ],
  609. "port": "3002",
  610. "path": [
  611. "api",
  612. "v1",
  613. "engine",
  614. "consent",
  615. "import"
  616. ]
  617. }
  618. },
  619. "response": []
  620. },
  621. {
  622. "name": "/consent/update",
  623. "request": {
  624. "method": "POST",
  625. "header": [
  626. {
  627. "key": "Content-Type",
  628. "type": "text",
  629. "value": "application/json"
  630. },
  631. {
  632. "key": "Accept",
  633. "type": "text",
  634. "value": "application/json"
  635. },
  636. {
  637. "key": "Cookie",
  638. "type": "text",
  639. "value": "jwt={{jwt}}"
  640. },
  641. {
  642. "key": "x-xsrf-token",
  643. "type": "text",
  644. "value": "{{x-xsrf-token}}",
  645. "disabled": true
  646. }
  647. ],
  648. "body": {
  649. "mode": "raw",
  650. "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"consent.consent.update\",\r\n \"params\": {\r\n }\r\n}"
  651. },
  652. "url": {
  653. "raw": "http://localhost:3002/api/v1/engine/consent/update/1",
  654. "protocol": "http",
  655. "host": [
  656. "localhost"
  657. ],
  658. "port": "3002",
  659. "path": [
  660. "api",
  661. "v1",
  662. "engine",
  663. "consent",
  664. "update",
  665. "1"
  666. ]
  667. }
  668. },
  669. "response": []
  670. },
  671. {
  672. "name": "/request/add",
  673. "request": {
  674. "method": "POST",
  675. "header": [
  676. {
  677. "key": "Content-Type",
  678. "type": "text",
  679. "value": "application/json"
  680. },
  681. {
  682. "key": "Accept",
  683. "type": "text",
  684. "value": "application/json"
  685. },
  686. {
  687. "key": "Cookie",
  688. "type": "text",
  689. "value": "jwt={{jwt}}"
  690. },
  691. {
  692. "key": "x-xsrf-token",
  693. "type": "text",
  694. "value": "{{x-xsrf-token}}",
  695. "disabled": true
  696. }
  697. ],
  698. "body": {
  699. "mode": "raw",
  700. "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"request.add\",\r\n \"params\": { \r\n \t\"requestId\": 1\r\n }\r\n}"
  701. },
  702. "url": {
  703. "raw": "http://localhost:3002/api/v1/engine/request/add",
  704. "protocol": "http",
  705. "host": [
  706. "localhost"
  707. ],
  708. "port": "3002",
  709. "path": [
  710. "api",
  711. "v1",
  712. "engine",
  713. "request",
  714. "add"
  715. ]
  716. }
  717. },
  718. "response": []
  719. },
  720. {
  721. "name": "/request/update/1",
  722. "request": {
  723. "method": "POST",
  724. "header": [
  725. {
  726. "key": "Content-Type",
  727. "type": "text",
  728. "value": "application/json"
  729. },
  730. {
  731. "key": "Accept",
  732. "type": "text",
  733. "value": "application/json"
  734. },
  735. {
  736. "key": "Cookie",
  737. "type": "text",
  738. "value": "jwt={{jwt}}"
  739. },
  740. {
  741. "key": "x-xsrf-token",
  742. "type": "text",
  743. "value": "{{x-xsrf-token}}",
  744. "disabled": true
  745. }
  746. ],
  747. "body": {
  748. "mode": "raw",
  749. "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"request.update\",\r\n \"params\": {\r\n }\r\n}"
  750. },
  751. "url": {
  752. "raw": "http://localhost:3002/api/v1/engine/request/update/1",
  753. "protocol": "http",
  754. "host": [
  755. "localhost"
  756. ],
  757. "port": "3002",
  758. "path": [
  759. "api",
  760. "v1",
  761. "engine",
  762. "request",
  763. "update",
  764. "1"
  765. ]
  766. }
  767. },
  768. "response": []
  769. },
  770. {
  771. "name": "/request/requestType/add",
  772. "request": {
  773. "method": "POST",
  774. "header": [
  775. {
  776. "key": "Content-Type",
  777. "type": "text",
  778. "value": "application/json"
  779. },
  780. {
  781. "key": "Accept",
  782. "type": "text",
  783. "value": "application/json"
  784. },
  785. {
  786. "key": "Cookie",
  787. "type": "text",
  788. "value": "jwt={{jwt}}"
  789. },
  790. {
  791. "key": "x-xsrf-token",
  792. "type": "text",
  793. "value": "{{x-xsrf-token}}",
  794. "disabled": true
  795. }
  796. ],
  797. "body": {
  798. "mode": "raw",
  799. "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"request.requestType.add\",\r\n \"params\": { \r\n \t\"requestId\": 1\r\n }\r\n}"
  800. },
  801. "url": {
  802. "raw": "http://localhost:3002/api/v1/engine/request/requestType/add",
  803. "protocol": "http",
  804. "host": [
  805. "localhost"
  806. ],
  807. "port": "3002",
  808. "path": [
  809. "api",
  810. "v1",
  811. "engine",
  812. "request",
  813. "requestType",
  814. "add"
  815. ]
  816. }
  817. },
  818. "response": []
  819. },
  820. {
  821. "name": "/request/requestType/update",
  822. "request": {
  823. "method": "POST",
  824. "header": [
  825. {
  826. "key": "Content-Type",
  827. "type": "text",
  828. "value": "application/json"
  829. },
  830. {
  831. "key": "Accept",
  832. "type": "text",
  833. "value": "application/json"
  834. },
  835. {
  836. "key": "Cookie",
  837. "type": "text",
  838. "value": "jwt={{jwt}}"
  839. },
  840. {
  841. "key": "x-xsrf-token",
  842. "type": "text",
  843. "value": "{{x-xsrf-token}}",
  844. "disabled": true
  845. }
  846. ],
  847. "body": {
  848. "mode": "raw",
  849. "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"request.requestType.update\",\r\n \"params\": { \r\n \t\"requestId\": 1\r\n }\r\n}"
  850. },
  851. "url": {
  852. "raw": "http://localhost:3002/api/v1/engine/request/requestType/update",
  853. "protocol": "http",
  854. "host": [
  855. "localhost"
  856. ],
  857. "port": "3002",
  858. "path": [
  859. "api",
  860. "v1",
  861. "engine",
  862. "request",
  863. "requestType",
  864. "update"
  865. ]
  866. }
  867. },
  868. "response": []
  869. },
  870. {
  871. "name": "/engine/meta/get",
  872. "event": [
  873. {
  874. "listen": "test",
  875. "script": {
  876. "id": "546b83b5-a706-4ef0-949e-d2a4b490da84",
  877. "exec": [
  878. ""
  879. ],
  880. "type": "text/javascript"
  881. }
  882. }
  883. ],
  884. "request": {
  885. "method": "POST",
  886. "header": [
  887. {
  888. "key": "Content-Type",
  889. "value": "application/json",
  890. "type": "text"
  891. },
  892. {
  893. "key": "Accept",
  894. "value": "application/json",
  895. "type": "text"
  896. },
  897. {
  898. "key": "Cookie",
  899. "value": "jwt={{jwt}}",
  900. "type": "text"
  901. },
  902. {
  903. "key": "Cookie",
  904. "value": "xsrf-token={{x-xsrf-token}}",
  905. "type": "text"
  906. },
  907. {
  908. "key": "x-xsrf-token",
  909. "value": "{{x-xsrf-token}}",
  910. "type": "text"
  911. }
  912. ],
  913. "body": {
  914. "mode": "raw",
  915. "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"meta.get\",\r\n \"params\": {}\r\n}"
  916. },
  917. "url": {
  918. "raw": "http://localhost:3002/api/v1/engine/meta/get",
  919. "protocol": "http",
  920. "host": [
  921. "localhost"
  922. ],
  923. "port": "3002",
  924. "path": [
  925. "api",
  926. "v1",
  927. "engine",
  928. "meta",
  929. "get"
  930. ]
  931. }
  932. },
  933. "response": []
  934. },
  935. {
  936. "name": "/erasureCandidate/import",
  937. "request": {
  938. "method": "POST",
  939. "header": [
  940. {
  941. "key": "Content-Type",
  942. "type": "text",
  943. "value": "application/json"
  944. },
  945. {
  946. "key": "Accept",
  947. "type": "text",
  948. "value": "application/json"
  949. },
  950. {
  951. "key": "Cookie",
  952. "type": "text",
  953. "value": "jwt={{jwt}}"
  954. },
  955. {
  956. "key": "x-xsrf-token",
  957. "type": "text",
  958. "value": "{{x-xsrf-token}}",
  959. "disabled": true
  960. }
  961. ],
  962. "body": {
  963. "mode": "raw",
  964. "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"erasureCandidate.import\",\r\n \"params\": { \r\n \t \"egn\": \"12312321\",\r\n\t \"lnc\": \"131231232\",\r\n\t \"firstName\": \"Nqkuv\",\r\n\t \"middleName\": \"Ivanov\",\r\n\t \"lastName\": \"Ivanov\",\r\n\t \"birthdate\": \"2019-03-14\",\r\n\t \"email\": \"user@example.com\",\r\n\t \"legalEntity\": \"Software Group\",\r\n\t \"dataSubjectCategory\": \"Employees\",\r\n\t \"channel\": \"Mobile Banking\",\r\n\t \"sourceSystem\": \"Reporting system\",\r\n\t \"status\": \"Imported\"\r\n }\r\n}"
  965. },
  966. "url": {
  967. "raw": "http://localhost:3002/api/v1/engine/erasure/erasureCandidate/import",
  968. "protocol": "http",
  969. "host": [
  970. "localhost"
  971. ],
  972. "port": "3002",
  973. "path": [
  974. "api",
  975. "v1",
  976. "engine",
  977. "erasure",
  978. "erasureCandidate",
  979. "import"
  980. ]
  981. }
  982. },
  983. "response": []
  984. },
  985. {
  986. "name": "/erasureCandidate/bulk-import",
  987. "request": {
  988. "method": "POST",
  989. "header": [
  990. {
  991. "key": "Content-Type",
  992. "type": "text",
  993. "value": "application/json"
  994. },
  995. {
  996. "key": "Accept",
  997. "type": "text",
  998. "value": "application/json"
  999. },
  1000. {
  1001. "key": "Cookie",
  1002. "type": "text",
  1003. "value": "jwt={{jwt}}"
  1004. },
  1005. {
  1006. "key": "x-xsrf-token",
  1007. "type": "text",
  1008. "value": "{{x-xsrf-token}}",
  1009. "disabled": true
  1010. }
  1011. ],
  1012. "body": {
  1013. "mode": "raw",
  1014. "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"erasureCandidate.import\",\r\n \"params\": { \r\n \t\"erasureCandidates\": [{\r\n \t \"egn\": \"string\",\r\n\t \"lnc\": \"string\",\r\n\t \"firstName\": \"Ivan\",\r\n\t \"middleName\": \"Ivanov\",\r\n\t \"lastName\": \"Ivanov\",\r\n\t \"birthdate\": \"2019-03-14\",\r\n\t \"email\": \"user@example.com\",\r\n\t \"legalEntity\": \"Software Group\",\r\n\t \"dataSubjectCategory\": \"Employees\",\r\n\t \"channel\": \"Mobile Banking\",\r\n\t \"sourceSystem\": \"Reporting system\",\r\n\t \"status\": \"Imported\"\r\n \t},{\r\n \t \"egn\": \"string\",\r\n\t \"lnc\": \"string\",\r\n\t \"firstName\": \"Nqkuv\",\r\n\t \"middleName\": \"Nqkuv\",\r\n\t \"lastName\": \"Nqkuv\",\r\n\t \"birthdate\": \"2019-03-14\",\r\n\t \"email\": \"user@example.com\",\r\n\t \"legalEntity\": \"Software Group\",\r\n\t \"dataSubjectCategory\": \"Employees\",\r\n\t \"channel\": \"Mobile Banking\",\r\n\t \"sourceSystem\": \"Reporting system\",\r\n\t \"status\": \"Imported\"\r\n \t}]\r\n }\r\n}"
  1015. },
  1016. "url": {
  1017. "raw": "http://localhost:3002/api/v1/engine/erasure/erasureCandidate/bulk-import",
  1018. "protocol": "http",
  1019. "host": [
  1020. "localhost"
  1021. ],
  1022. "port": "3002",
  1023. "path": [
  1024. "api",
  1025. "v1",
  1026. "engine",
  1027. "erasure",
  1028. "erasureCandidate",
  1029. "bulk-import"
  1030. ]
  1031. }
  1032. },
  1033. "response": []
  1034. }
  1035. ]
  1036. }
  1037.  
  1038. __________________________________________________________________________________________________________________________________-___
  1039. Response:
  1040. {
  1041. "error": {
  1042. "errors": [
  1043. {
  1044. "message": "validation failed",
  1045. "errors": [
  1046. {
  1047. "keyword": "required",
  1048. "dataPath": "",
  1049. "schemaPath": "#/required",
  1050. "params": {
  1051. "missingProperty": "jsonrpc"
  1052. },
  1053. "message": "should have required property 'jsonrpc'"
  1054. },
  1055. {
  1056. "keyword": "required",
  1057. "dataPath": "",
  1058. "schemaPath": "#/required",
  1059. "params": {
  1060. "missingProperty": "method"
  1061. },
  1062. "message": "should have required property 'method'"
  1063. },
  1064. {
  1065. "keyword": "required",
  1066. "dataPath": "",
  1067. "schemaPath": "#/required",
  1068. "params": {
  1069. "missingProperty": "params"
  1070. },
  1071. "message": "should have required property 'params'"
  1072. }
  1073. ],
  1074. "validation": true,
  1075. "ajv": true,
  1076. "where": "body",
  1077. "name": "jsonrpc"
  1078. }
  1079. ],
  1080. "message": "Request validation error",
  1081. "type": "swagger.requestValidation",
  1082. "level": "error"
  1083. }
  1084. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement