Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Request:
- {
- "info": {
- "_postman_id": "6c3cc906-c32f-418c-b8d2-975b8158051b",
- "name": "DCCM-WF-ENGINE",
- "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
- },
- "item": [
- {
- "name": "/auth/login",
- "event": [
- {
- "listen": "test",
- "script": {
- "id": "546b83b5-a706-4ef0-949e-d2a4b490da84",
- "exec": [
- "var data = JSON.parse(responseBody);",
- "",
- "pm.environment.set('x-xsrf-token', data.xsrf.uuId);",
- "pm.environment.set('jwt', data.jwt.value);"
- ],
- "type": "text/javascript"
- }
- }
- ],
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json",
- "type": "text"
- },
- {
- "key": "Accept",
- "value": "application/json",
- "type": "text"
- }
- ],
- "body": {
- "mode": "raw",
- "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}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/auth/login",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "auth",
- "login"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/auth/check",
- "event": [
- {
- "listen": "test",
- "script": {
- "id": "bfaf5b6e-3fa9-431d-b568-0043768356ef",
- "exec": [
- "var data = JSON.parse(responseBody);",
- "",
- "pm.environment.set('x-xsrf-token', data.xsrf.uuId);",
- "pm.environment.set('jwt', data.jwt.value);"
- ],
- "type": "text/javascript"
- }
- }
- ],
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json",
- "type": "text"
- },
- {
- "key": "Accept",
- "value": "application/json",
- "type": "text"
- },
- {
- "key": "Cookie",
- "value": "jwt={{jwt}}",
- "type": "text"
- },
- {
- "key": "Cookie",
- "value": "xsrf-token={{x-xsrf-token}}",
- "type": "text"
- },
- {
- "key": "x-xsrf-token",
- "value": "{{x-xsrf-token}}",
- "type": "text"
- }
- ],
- "body": {
- "mode": "raw",
- "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}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/auth/check",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "auth",
- "check"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/auth/logout",
- "event": [
- {
- "listen": "test",
- "script": {
- "id": "ca960adc-437c-4a5b-a2ed-6491f953ed57",
- "exec": [
- "var data = JSON.parse(responseBody);",
- "",
- "pm.environment.set('x-xsrf-token', data.xsrf.uuId);",
- "pm.environment.set('jwt', data.jwt.value);"
- ],
- "type": "text/javascript"
- }
- }
- ],
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json",
- "type": "text"
- },
- {
- "key": "Accept",
- "value": "application/json",
- "type": "text"
- },
- {
- "key": "Cookie",
- "value": "jwt={{jwt}}",
- "type": "text"
- },
- {
- "key": "Cookie",
- "value": "xsrf-token={{x-xsrf-token}}",
- "type": "text"
- },
- {
- "key": "x-xsrf-token",
- "value": "{{x-xsrf-token}}",
- "type": "text"
- }
- ],
- "body": {
- "mode": "raw",
- "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}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/auth/logout",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "auth",
- "logout"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/api/docs",
- "request": {
- "method": "GET",
- "header": [],
- "body": {
- "mode": "raw",
- "raw": ""
- },
- "url": {
- "raw": "http://localhost:3002/docs/api-docs",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "docs",
- "api-docs"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/workflow/add",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json",
- "type": "text"
- },
- {
- "key": "Accept",
- "value": "application/json",
- "type": "text"
- },
- {
- "key": "Cookie",
- "value": "jwt={{jwt}}",
- "type": "text"
- },
- {
- "key": "Cookie",
- "value": "xsrf-token={{x-xsrf-token}}",
- "type": "text"
- },
- {
- "key": "x-xsrf-token",
- "value": "{{x-xsrf-token}}",
- "type": "text"
- }
- ],
- "body": {
- "mode": "raw",
- "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}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/workflow/add",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "workflow",
- "add"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/consent/get",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Cookie",
- "type": "text",
- "value": "jwt={{jwt}}"
- },
- {
- "key": "x-xsrf-token",
- "type": "text",
- "value": "{{x-xsrf-token}}",
- "disabled": true
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"engine.consent.get\",\r\n \"params\": {}\r\n}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/consent/get/1",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "consent",
- "get",
- "1"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/consent/fetch",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Cookie",
- "type": "text",
- "value": "jwt={{jwt}}"
- },
- {
- "key": "x-xsrf-token",
- "type": "text",
- "value": "{{x-xsrf-token}}",
- "disabled": true
- }
- ],
- "body": {
- "mode": "raw",
- "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}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/consent/fetch",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "consent",
- "fetch"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/consent/bulk-export",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Cookie",
- "type": "text",
- "value": "jwt={{jwt}}"
- },
- {
- "key": "x-xsrf-token",
- "type": "text",
- "value": "{{x-xsrf-token}}",
- "disabled": true
- }
- ],
- "body": {
- "mode": "raw",
- "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}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/consent/bulk-export",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "consent",
- "bulk-export"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/consent/get/{dataSubjectId}/latest",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Cookie",
- "type": "text",
- "value": "jwt={{jwt}}"
- },
- {
- "key": "x-xsrf-token",
- "type": "text",
- "value": "{{x-xsrf-token}}",
- "disabled": true
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"engine.consent.latest\",\r\n \"params\": {\r\n }\r\n}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/consent/get/1/latest",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "consent",
- "get",
- "1",
- "latest"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/consent/add",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Cookie",
- "type": "text",
- "value": "jwt={{jwt}}"
- },
- {
- "key": "x-xsrf-token",
- "type": "text",
- "value": "{{x-xsrf-token}}",
- "disabled": true
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"engine.consent.add\",\r\n \"params\": {\r\n }\r\n}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/consent/add",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "consent",
- "add"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/consent/bulk-import",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Cookie",
- "type": "text",
- "value": "jwt={{jwt}}"
- },
- {
- "key": "x-xsrf-token",
- "type": "text",
- "value": "{{x-xsrf-token}}",
- "disabled": true
- }
- ],
- "body": {
- "mode": "raw",
- "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}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/consent/bulk-import",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "consent",
- "bulk-import"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/consent/import",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Cookie",
- "type": "text",
- "value": "jwt={{jwt}}"
- },
- {
- "key": "x-xsrf-token",
- "type": "text",
- "value": "{{x-xsrf-token}}",
- "disabled": true
- }
- ],
- "body": {
- "mode": "raw",
- "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}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/consent/import",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "consent",
- "import"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/consent/update",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Cookie",
- "type": "text",
- "value": "jwt={{jwt}}"
- },
- {
- "key": "x-xsrf-token",
- "type": "text",
- "value": "{{x-xsrf-token}}",
- "disabled": true
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"consent.consent.update\",\r\n \"params\": {\r\n }\r\n}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/consent/update/1",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "consent",
- "update",
- "1"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/request/add",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Cookie",
- "type": "text",
- "value": "jwt={{jwt}}"
- },
- {
- "key": "x-xsrf-token",
- "type": "text",
- "value": "{{x-xsrf-token}}",
- "disabled": true
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"request.add\",\r\n \"params\": { \r\n \t\"requestId\": 1\r\n }\r\n}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/request/add",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "request",
- "add"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/request/update/1",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Cookie",
- "type": "text",
- "value": "jwt={{jwt}}"
- },
- {
- "key": "x-xsrf-token",
- "type": "text",
- "value": "{{x-xsrf-token}}",
- "disabled": true
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"request.update\",\r\n \"params\": {\r\n }\r\n}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/request/update/1",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "request",
- "update",
- "1"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/request/requestType/add",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Cookie",
- "type": "text",
- "value": "jwt={{jwt}}"
- },
- {
- "key": "x-xsrf-token",
- "type": "text",
- "value": "{{x-xsrf-token}}",
- "disabled": true
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"request.requestType.add\",\r\n \"params\": { \r\n \t\"requestId\": 1\r\n }\r\n}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/request/requestType/add",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "request",
- "requestType",
- "add"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/request/requestType/update",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Cookie",
- "type": "text",
- "value": "jwt={{jwt}}"
- },
- {
- "key": "x-xsrf-token",
- "type": "text",
- "value": "{{x-xsrf-token}}",
- "disabled": true
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"request.requestType.update\",\r\n \"params\": { \r\n \t\"requestId\": 1\r\n }\r\n}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/request/requestType/update",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "request",
- "requestType",
- "update"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/engine/meta/get",
- "event": [
- {
- "listen": "test",
- "script": {
- "id": "546b83b5-a706-4ef0-949e-d2a4b490da84",
- "exec": [
- ""
- ],
- "type": "text/javascript"
- }
- }
- ],
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "value": "application/json",
- "type": "text"
- },
- {
- "key": "Accept",
- "value": "application/json",
- "type": "text"
- },
- {
- "key": "Cookie",
- "value": "jwt={{jwt}}",
- "type": "text"
- },
- {
- "key": "Cookie",
- "value": "xsrf-token={{x-xsrf-token}}",
- "type": "text"
- },
- {
- "key": "x-xsrf-token",
- "value": "{{x-xsrf-token}}",
- "type": "text"
- }
- ],
- "body": {
- "mode": "raw",
- "raw": "{\r\n \"jsonrpc\": \"2.0\",\r\n \"method\": \"meta.get\",\r\n \"params\": {}\r\n}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/meta/get",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "meta",
- "get"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/erasureCandidate/import",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Cookie",
- "type": "text",
- "value": "jwt={{jwt}}"
- },
- {
- "key": "x-xsrf-token",
- "type": "text",
- "value": "{{x-xsrf-token}}",
- "disabled": true
- }
- ],
- "body": {
- "mode": "raw",
- "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}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/erasure/erasureCandidate/import",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "erasure",
- "erasureCandidate",
- "import"
- ]
- }
- },
- "response": []
- },
- {
- "name": "/erasureCandidate/bulk-import",
- "request": {
- "method": "POST",
- "header": [
- {
- "key": "Content-Type",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Accept",
- "type": "text",
- "value": "application/json"
- },
- {
- "key": "Cookie",
- "type": "text",
- "value": "jwt={{jwt}}"
- },
- {
- "key": "x-xsrf-token",
- "type": "text",
- "value": "{{x-xsrf-token}}",
- "disabled": true
- }
- ],
- "body": {
- "mode": "raw",
- "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}"
- },
- "url": {
- "raw": "http://localhost:3002/api/v1/engine/erasure/erasureCandidate/bulk-import",
- "protocol": "http",
- "host": [
- "localhost"
- ],
- "port": "3002",
- "path": [
- "api",
- "v1",
- "engine",
- "erasure",
- "erasureCandidate",
- "bulk-import"
- ]
- }
- },
- "response": []
- }
- ]
- }
- __________________________________________________________________________________________________________________________________-___
- Response:
- {
- "error": {
- "errors": [
- {
- "message": "validation failed",
- "errors": [
- {
- "keyword": "required",
- "dataPath": "",
- "schemaPath": "#/required",
- "params": {
- "missingProperty": "jsonrpc"
- },
- "message": "should have required property 'jsonrpc'"
- },
- {
- "keyword": "required",
- "dataPath": "",
- "schemaPath": "#/required",
- "params": {
- "missingProperty": "method"
- },
- "message": "should have required property 'method'"
- },
- {
- "keyword": "required",
- "dataPath": "",
- "schemaPath": "#/required",
- "params": {
- "missingProperty": "params"
- },
- "message": "should have required property 'params'"
- }
- ],
- "validation": true,
- "ajv": true,
- "where": "body",
- "name": "jsonrpc"
- }
- ],
- "message": "Request validation error",
- "type": "swagger.requestValidation",
- "level": "error"
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement