Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "BaSyx / Documentation / Components / DataBridge / Features / Protocol Integration / HTTP"
< BaSyx | Documentation | Components | DataBridge | Features
m (→Working Example) |
m (Fixes http example) |
||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
== Configuration == | == Configuration == | ||
− | To configure HTTP in DataBridge you need to provide the '''unique id''', and the HTTP | + | To configure HTTP in DataBridge you need to provide the '''unique id''', and the HTTP '''serverUrl''' that should be queried. |
=== Sample Configuration === | === Sample Configuration === | ||
Line 10: | Line 10: | ||
{ | { | ||
"uniqueId": "httpsource", | "uniqueId": "httpsource", | ||
− | "serverUrl": "127.0.0.1 | + | "serverUrl": "http://127.0.0.1:1234/test" |
− | + | ||
− | + | ||
} | } | ||
] | ] | ||
Line 23: | Line 21: | ||
== Working Example == | == Working Example == | ||
− | The integration example with HTTP as a data source, | + | The integration example with HTTP as a data source, JSONata as a transformer, and AAS as a data sink is on [https://github.com/eclipse-basyx/basyx-databridge/tree/main/databridge.examples/databridge.examples.httppolling-jsonata-aas GitHub DataBridge Example]. |
Latest revision as of 04:46, 5 June 2023
Contents
HTTP
The HTTP source can be integrated with DataBridge. The data from the specified HTTP endpoint is fetched, processed and then delivered to the sink.
Configuration
To configure HTTP in DataBridge you need to provide the unique id, and the HTTP serverUrl that should be queried.
Sample Configuration
[ { "uniqueId": "httpsource", "serverUrl": "http://127.0.0.1:1234/test" } ]
Similarly, you can configure multiple HTTP consumers inside the configuration file.
Naming Convention
The name of the HTTP consumer configuration file should be httpconsumer.json.
Working Example
The integration example with HTTP as a data source, JSONata as a transformer, and AAS as a data sink is on GitHub DataBridge Example.