Remote Report Def V1 API
REST API
Ez a szolgáltatás jelenleg csak REST API-n keresztül elérhető.
Create/Update remote report definition
REST API
Kérés
Create
POST hammy/json/remoteReport/v1/remoteReportDefs
body: RemoteReportDef
Update
PUT hammy/json/remoteReport/v1/remoteReportDefs/{{uuid}}
body: RemoteReportDef
Válasz
| Típus | Leírás |
|---|---|
| RemoteReportDef | A létrehozott/módosított definíció. |
Minta
POST /json/remoteReport/v1/remoteReportDefs
PUT /json/remoteReport/v1/remoteReportDefs/{{uuid}}
Authorization: JWT {{jwtToken}}
X-Client-Hash-Key: {{clientHashKey}}
X-User-Name: {{userName}}
Content-Type: application/vnd.api+json
{
"data": {
"type": "remoteReportDefs",
"id": "d9b50f2a-d944-4930-8705-2d6a8918d56e",
"attributes": {
"name": "riport teszteles",
"status": "draft",
"cronExpression": "0 0/5 * 1/1 * ? *",
"messageTypes": [
"CSABI.TEST",
"GENERALI-KGFB-KOTVENY"
]
},
"relationships": {
"fieldDefs": {
"data": [
{
"type": "remoteReportFieldDefs",
"id": "c82891e5-5f1f-471c-b174-e79d85bab070"
},
{
"type": "remoteReportFieldDefs",
"id": "3e588cd6-424d-4e86-a2be-e312b5224286"
}
]
}
}
},
"included": [
{
"type": "remoteReportFieldDefs",
"id": "3e588cd6-424d-4e86-a2be-e312b5224286",
"attributes": {
"orderNo": 3,
"columnName": "cName02",
"sourceType": "attachment",
"propertyKey": "pKey02"
}
},
{
"type": "remoteReportFieldDefs",
"id": "c82891e5-5f1f-471c-b174-e79d85bab070",
"attributes": {
"orderNo": 1,
"columnName": "cName01",
"sourceType": "message",
"propertyKey": "pKey01"
}
}
]
}
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
{
"data": {
"type": "remoteReportDefs",
"id": "d9b50f2a-d944-4930-8705-2d6a8918d56e",
"attributes": {
"name": "riport teszteles",
"status": "draft",
"cronExpression": "0 0/5 * 1/1 * ? *",
"createdBy": "admin",
"messageTypes": [
"CSABI.TEST",
"GENERALI-KGFB-KOTVENY"
]
},
"relationships": {
"fieldDefs": {
"data": [
{
"type": "remoteReportFieldDefs",
"id": "3e588cd6-424d-4e86-a2be-e312b5224286"
},
{
"type": "remoteReportFieldDefs",
"id": "c82891e5-5f1f-471c-b174-e79d85bab070"
}
]
}
}
},
"included": [
{
"type": "remoteReportFieldDefs",
"id": "c82891e5-5f1f-471c-b174-e79d85bab070",
"attributes": {
"orderNo": 1,
"columnName": "cName01",
"sourceType": "message",
"propertyKey": "pKey01",
"createdAt": "2023-01-11T22:29:00.455+00:00",
"createdBy": "admin",
"updatedAt": "2023-01-11T22:29:00.455+00:00"
}
},
{
"type": "remoteReportFieldDefs",
"id": "3e588cd6-424d-4e86-a2be-e312b5224286",
"attributes": {
"orderNo": 3,
"columnName": "cName02",
"sourceType": "attachment",
"propertyKey": "pKey02",
"createdAt": "2023-01-11T22:29:00.448+00:00",
"createdBy": "admin",
"updatedAt": "2023-01-11T22:29:00.448+00:00"
}
}
],
"meta": {
"params": [],
"responseStatus": {
"code": 0,
"messages": []
}
}
}
Show remote report definition
REST API
Ez a szolgáltatás jelenleg csak REST API-n keresztül elérhető.
GET /json/remoteReport/v1/remoteReportDefs/{{uuid}}
Authorization: JWT {{jwtToken}}
X-Client-Hash-Key: {{clientHashKey}}
X-User-Name: {{userName}}
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
{
"data": {
"type": "remoteReportDefs",
"id": "d9b50f2a-d944-4930-8705-2d6a8918d56e",
"attributes": {
"name": "riport teszteles",
"status": "draft",
"cronExpression": "0 0/5 * 1/1 * ? *",
"createdBy": "admin",
"messageTypes": [
"CSABI.TEST",
"GENERALI-KGFB-KOTVENY"
]
},
"relationships": {
"fieldDefs": {
"data": [
{
"type": "remoteReportFieldDefs",
"id": "3e588cd6-424d-4e86-a2be-e312b5224286"
},
{
"type": "remoteReportFieldDefs",
"id": "c82891e5-5f1f-471c-b174-e79d85bab070"
}
]
}
}
},
"included": [
{
"type": "remoteReportFieldDefs",
"id": "c82891e5-5f1f-471c-b174-e79d85bab070",
"attributes": {
"orderNo": 1,
"columnName": "cName01",
"sourceType": "message",
"propertyKey": "pKey01",
"createdAt": "2023-01-11T22:29:00.455+00:00",
"createdBy": "admin",
"updatedAt": "2023-01-11T22:29:00.455+00:00"
}
},
{
"type": "remoteReportFieldDefs",
"id": "3e588cd6-424d-4e86-a2be-e312b5224286",
"attributes": {
"orderNo": 3,
"columnName": "cName02",
"sourceType": "attachment",
"propertyKey": "pKey02",
"createdAt": "2023-01-11T22:29:00.448+00:00",
"createdBy": "admin",
"updatedAt": "2023-01-11T22:29:00.448+00:00"
}
}
],
"meta": {
"params": [],
"responseStatus": {
"code": 0,
"messages": []
}
}
}
List remote report definitions
REST API
Ez a szolgáltatás jelenleg csak REST API-n keresztül elérhető.
GET /json/remoteReport/v1/remoteReportDefs
Authorization: JWT {{jwtToken}}
X-Client-Hash-Key: {{clientHashKey}}
X-User-Name: {{userName}}
Query params:
-------------------------
name={{riport neve}}
createdBy={{létrehozó user neve}}
statuses={{draft|active|disabled}}
GET /json/remoteReport/v1/remoteReportDefs?statuses%5B%5D=draft&statuses%5B%5D=disabled
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
{
"data": [
{
"type": "remoteReportDefs",
"id": "490d41d3-ecaa-4cbe-8a91-46394ca7a5b9",
"attributes": {
"name": "riport teszteles 2",
"status": "draft",
"cronExpression": "0 0/5 * 1/1 * ? *",
"createdBy": "admin",
"messageTypes": [
"AAA_Teszt_V2",
"TESZT_FULI1"
]
},
"relationships": {
"fieldDefs": {
"data": [
{
"type": "remoteReportFieldDefs",
"id": "e9d99e4e-0edb-472b-9854-5989f9c6698a"
},
{
"type": "remoteReportFieldDefs",
"id": "367daf11-38b4-41be-a20f-c301bf0798f1"
}
]
}
}
},
{
"type": "remoteReportDefs",
"id": "d9b50f2a-d944-4930-8705-2d6a8918d56e",
"attributes": {
"name": "riport teszteles",
"status": "draft",
"cronExpression": "0 0/5 * 1/1 * ? *",
"createdBy": "admin",
"messageTypes": [
"CSABI.TEST",
"GENERALI-KGFB-KOTVENY"
]
},
"relationships": {
"fieldDefs": {
"data": [
{
"type": "remoteReportFieldDefs",
"id": "c82891e5-5f1f-471c-b174-e79d85bab070"
},
{
"type": "remoteReportFieldDefs",
"id": "3e588cd6-424d-4e86-a2be-e312b5224286"
}
]
}
}
}
],
"meta": {
"total": 2,
"params": [],
"responseStatus": {
"code": 0,
"messages": []
}
},
"included": [
{
"type": "remoteReportFieldDefs",
"id": "e9d99e4e-0edb-472b-9854-5989f9c6698a",
"attributes": {
"orderNo": 3,
"columnName": "sent_at",
"sourceType": "message",
"createdAt": "2023-01-11T22:38:48.018+00:00",
"createdBy": "admin",
"updatedAt": "2023-01-11T22:38:48.018+00:00"
}
},
{
"type": "remoteReportFieldDefs",
"id": "367daf11-38b4-41be-a20f-c301bf0798f1",
"attributes": {
"orderNo": 1,
"sourceType": "message",
"propertyKey": "PROP01",
"createdAt": "2023-01-11T22:38:48.022+00:00",
"createdBy": "admin",
"updatedAt": "2023-01-11T22:38:48.022+00:00"
}
},
{
"type": "remoteReportFieldDefs",
"id": "c82891e5-5f1f-471c-b174-e79d85bab070",
"attributes": {
"orderNo": 1,
"columnName": "cName01",
"sourceType": "message",
"propertyKey": "pKey01",
"createdAt": "2023-01-11T22:29:00.455+00:00",
"createdBy": "admin",
"updatedAt": "2023-01-11T22:29:00.455+00:00"
}
},
{
"type": "remoteReportFieldDefs",
"id": "3e588cd6-424d-4e86-a2be-e312b5224286",
"attributes": {
"orderNo": 3,
"columnName": "cName02",
"sourceType": "attachment",
"propertyKey": "pKey02",
"createdAt": "2023-01-11T22:29:00.448+00:00",
"createdBy": "admin",
"updatedAt": "2023-01-11T22:29:00.448+00:00"
}
}
]
}
List calculated fields
REST API
Ez a szolgáltatás jelenleg csak REST API-n keresztül elérhető.
GET hammy/json/remoteReport/v1/listCalculatedFields
TemplateVariable
| Név | Típus | Leírás |
|---|---|---|
| variable | String | változó neve |
| valueType | String | típusa |
Minta
GET /json/remoteReport/v1/listCalculatedFields
Authorization: JWT {{jwtToken}}
X-Client-Hash-Key: {{clientHashKey}}
X-User-Name: {{userName}}
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
{
"meta" : {
"responseStatus" : {
"code" : 0,
"messages" : [ ]
},
"params" : [ ],
"total" : 4
},
"list" : [ {
"variable" : "pdf_archivum_azonositoja_sze"
}, {
"variable" : "pdf_archivum_azonositoja_uf"
}, {
"variable" : "email_kikuldes_datuma"
}, {
"variable" : "cimzett_email_cim"
} ]
}
Export remote report definitions
REST API
Ez a szolgáltatás jelenleg csak REST API-n keresztül elérhető.
GET hammy/json/remoteReport/v1/exportRemoteReportDefs
Minta
GET /json/remoteReport/v1/exportRemoteReportDefs
Authorization: JWT {{jwtToken}}
X-Client-Hash-Key: {{clientHashKey}}
X-User-Name: {{userName}}
Content-Type: application/json
Query params:
-------------------------
remoteReportDefIdList[]={{report definition id-k (uuid) listája}}
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
{
"exportRemoteReportDefList": [
{
"name": "Lakas_BO_tavnyil",
"cronExpression": "0 47 17 1/1 * ? *",
"fieldDefs": [
{
"orderNo": 27,
"propertyKey": "modositas_hatalya",
"valueType": "checkboxWithInfo"
},
{
"orderNo": 24,
"propertyKey": "uj_eves_dij",
"valueType": "velocityTemplate"
},
{
"orderNo": 19,
"propertyKey": "indexalt_eves_dij",
"valueType": "text"
},
{
"orderNo": 12,
"propertyKey": "kut_ID",
"valueType": "text"
},
{
"orderNo": 0,
"propertyKey": "ugyfelazonosito",
"valueType": "text"
},
{
"orderNo": 10,
"propertyKey": "szerzodesszam",
"valueType": "text"
},
{
"orderNo": 31,
"columnName": "ugyfel_valaszreakcio_tipusa"
},
{
"orderNo": 4,
"propertyKey": "szerzodo_ceg_adoszama",
"valueType": "text"
},
{
"orderNo": 33,
"propertyKey": "just_kod",
"valueType": "text"
},
{
"orderNo": 23,
"propertyKey": "uj_dijtetel",
"valueType": "velocityTemplate"
},
{
"orderNo": 8,
"propertyKey": "szerzodo_email_cime",
"valueType": "text"
},
{
"orderNo": 15,
"propertyKey": "riziko_sorszam",
"valueType": "text"
},
{
"orderNo": 16,
"propertyKey": "foepulet_BO",
"valueType": "text"
},
{
"orderNo": 1,
"propertyKey": "szerzodo_tipusa",
"valueType": "text"
},
{
"orderNo": 9,
"propertyKey": "szerzodo_mobiltelefonszama",
"valueType": "mobile"
},
{
"orderNo": 6,
"propertyKey": "szerzodo_szuletesi_datuma",
"valueType": "datetime"
},
{
"orderNo": 2,
"propertyKey": "szerzodo_neve",
"valueType": "text"
},
{
"orderNo": 29,
"columnName": "email_kikuldes_datuma",
"valueType": "datetime"
},
{
"orderNo": 5,
"propertyKey": "szerzodo_anyja_neve",
"valueType": "text"
},
{
"orderNo": 26,
"propertyKey": "ervenyessegi_datum",
"valueType": "text"
},
{
"orderNo": 25,
"propertyKey": "H64_zaradek",
"valueType": "text"
},
{
"orderNo": 30,
"columnName": "ugyfel_reakcio_datuma",
"valueType": "datetime"
},
{
"orderNo": 11,
"propertyKey": "evfordulo",
"valueType": "text"
},
{
"orderNo": 18,
"propertyKey": "foepulet_dij",
"valueType": "text"
},
{
"orderNo": 32,
"columnName": "pdf_archivum_azonositoja_uf"
},
{
"orderNo": 17,
"propertyKey": "jelenlegi_eves_dij",
"valueType": "text"
},
{
"orderNo": 14,
"propertyKey": "almodozat_kod",
"valueType": "text"
},
{
"orderNo": 13,
"propertyKey": "deklaracio_kod",
"valueType": "text"
},
{
"orderNo": 21,
"propertyKey": "evfordulos_kampany",
"valueType": "text"
},
{
"orderNo": 22,
"propertyKey": "uj_BO",
"valueType": "checkboxWithInfo"
},
{
"orderNo": 28,
"propertyKey": "nyilatkozattetel_helye",
"valueType": "text"
},
{
"orderNo": 3,
"propertyKey": "szerzodo_cim",
"valueType": "text"
},
{
"orderNo": 7,
"propertyKey": "szerzodo_szuletesi_helye",
"valueType": "text"
},
{
"orderNo": 20,
"propertyKey": "brutto_dijtetel",
"valueType": "text"
}
],
"messageTypes": [
"nyilatkozat2_evfordulora_irhato",
"nyilatkozat1_evkozi"
]
}
]
}
Import remote report definitions
REST API
Ez a szolgáltatás jelenleg csak REST API-n keresztül elérhető.
PUT hammy/json/remoteReport/v1/importRemoteReportDefs
Minta
PUT /json/remoteReport/v1/importRemoteReportDefs
Authorization: JWT {{jwtToken}}
X-Client-Hash-Key: {{clientHashKey}}
X-User-Name: {{userName}}
Content-Type: multipart/form-data
Form data:
-------------------------
import_data={{import fájl}}
HTTP/1.1 200 OK
Content-Type: application/vnd.api+json
{
"data": {
"type": "emptyResponse",
"id": "81dc87bf-4081-4a92-807c-4cd048daeaf1",
"attributes": {}
},
"meta": {
"params": [],
"responseStatus": {
"code": 0,
"messages": [
{
"severity": "WARNING",
"code": "REMOTE_REPORT_DEF_IMPORT_WARNING_PATH",
"description": "Az importált riportnál az elérési utakat kézzel kötelező megadni!"
}
]
}
}
}