Skip to content

Commit e7b0877

Browse files
committed
batch from orion
1 parent 9fb3d47 commit e7b0877

1 file changed

Lines changed: 35 additions & 7 deletions

File tree

config.template.js

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,36 @@ module.exports = {
2323
password: '',
2424
port: 5432
2525
},
26-
mapEndpoint: "http://localhost:8081/api/map/transform",
26+
mapEndpoint: "http://localhost:5500/api/map/transform",
27+
sessionEndpoint: "http://localhost:5500/api/output?",
2728
mapID: "",
2829
orion: {
30+
protocol: "http",
2931
subscribe: true,
3032
deleteAllDuplicateSubscriptions: true,
3133
attrWithUrl: "datasetUrl",
32-
orionBaseUrl: "http://localhost:1027",
33-
notificationUrl: "http://host.docker.internal:3000/api/orion/subscribe",
34-
fiwareService: "service",
35-
fiwareServicePath: "/service"
34+
orionBaseUrl: "http://localhost:1026",
35+
hostname: "localhost",
36+
port: 1026,
37+
ngsiBrokerUrl: "https://dx-lab.it/",
38+
notificationUrl: "http://localhost:3000/api/orion/subscribe",
39+
fiwareService: "",
40+
fiwareServicePath: "",
41+
checkSubscriptionInterval: 0,
42+
recreateSubscriptionAtInterval: 0,
43+
useNgsiBroker: false
3644
},
3745
logLevel: "info",
3846
syncInterval: 86400000,
3947
doNotSyncAtStart: false,
48+
upsertRecords: true,
4049
delays: 1,
4150
queryAllowedExtensions: ["csv", "json", "geojson"],
4251
parseCompatibilityMode: 0,
4352
port: 3000,
4453
updateOwner: "later",
4554
writeLogsOnFile: true,
46-
mongo: "mongodb://localhost:27017/Minio-Mongo", // mongo url
55+
mongo: "mongodb://localhost:22000/Minio-Mongo", // mongo url
4756
authConfig: {
4857
idmHost: "https://platform.beopendep.it/auth",
4958
clientId: "",
@@ -101,7 +110,26 @@ module.exports = {
101110
}
102111
}
103112
}
104-
}
113+
},
114+
{
115+
name: "Orion pagination test",
116+
pagination: {
117+
offsetParam: "offset",
118+
limitParam: "limit",
119+
limit: 2,
120+
offset: 0,
121+
condition: (response) => (response.data.length > 0)
122+
},
123+
url: "http://localhost:1026/ngsi-ld/v1/entities?type=DistributionDCAT-AP",
124+
},
125+
{
126+
name: "Get batch example",
127+
batch: {
128+
from: "http://url-to-get-batch.com/api/batch",
129+
param: "id"
130+
},
131+
url: "https://url-to-use-batch/{batch}"
132+
}
105133
]*/
106134
}
107135
}

0 commit comments

Comments
 (0)