This is a UI for the cimport topology import service of the OpenEnergyTwin Platform.
This service serves a web interface that allows uploading XML CIM data and submitting it for import. It does not perform the import itself, for that you need service-cimport.
For deployment, this service requires a connection to a Kafka broker. The service presents a web UI via an http-server on port 3000. It optionally supports mTLS for secure communication with the Kafka broker.
| Variable | Description | Required | Default |
|---|---|---|---|
KAFKA_BROKERS |
A comma-separated list of Kafka broker addresses. Example: kafka_1:9091,kafka_2:9092 |
Yes | localhost:9092 |
KAFKA_CLIENT_ID |
The client ID used to identify this service to the Kafka broker. | No | cim-http-server |
KAFKA_CONSUMER_GROUP_ID |
The consumer group ID used to receive responses from the Topology topic. |
No | cim-http-server-group |
KAFKA_SSL_ENABLED |
Set to true to enable mTLS for Kafka connections. |
No | false |
KAFKA_SSL_CA_PATH |
Path to the CA certificate of the Kafka broker. Required if KAFKA_SSL_ENABLED is true. |
No | |
KAFKA_SSL_CERT_PATH |
Path to the client certificate this service will use to auth with the Kafka broker. Required if mTLS enabled. | No | |
KAFKA_SSL_KEY_PATH |
Path to the private key this service will use to auth with the Kafka broker. Required if mTLS enabled. | No |
The server serves the UI and handles uploads on port 3000.
| Route | Description |
|---|---|
/ |
Web UI for uploading CIM XML files |
/upload |
Upload endpoint (POST); sends XML files to the Topology.ImportXML Kafka topic and returns the processed response |
This service serves a web interface through which users can upload one or more XML CIM files along with a CIM context URL.
On upload, the files are published to the Topology.ImportXML Kafka topic.
The service then waits up to 60 seconds for a response on the Topology topic and returns the result to the browser.
To use this service, you also need a running instance of service-cimport connected to the same Kafka broker.
Please use Conventional Commits when comitting, so a nice changelog and semantic releases can be created. Merge the pending release-please PR to create a new release.