1
0
mirror of https://github.com/pcvolkmer/mv64e-rest-to-kafka-gateway synced 2025-09-13 09:12:51 +00:00

docs: add usage of custom mime type

This commit is contained in:
2025-07-12 11:29:40 +02:00
parent 9057789b38
commit f6eaf31254

View File

@@ -5,7 +5,7 @@ DNPM Datenmodell 2.1 REST Proxy für Kafka
### Einordnung innerhalb einer DNPM-ETL-Strecke ### Einordnung innerhalb einer DNPM-ETL-Strecke
Diese Anwendung erlaubt das Weiterleiten von REST Anfragen mit einem Request-Body und Inhalt im DNPM-Datenmodell 2.1 Diese Anwendung erlaubt das Weiterleiten von REST Anfragen mit einem Request-Body und Inhalt im DNPM-Datenmodell 2.1
sowie `Content-Type` von `application/json` an einen Apache Kafka Cluster. sowie `Content-Type` von `application/json` bzw `application/vnd.dnpm.v2.mtb+json` an einen Apache Kafka Cluster.
Verwendung im Zusammenspiel mit https://github.com/pcvolkmer/etl-processor Verwendung im Zusammenspiel mit https://github.com/pcvolkmer/etl-processor
@@ -82,6 +82,8 @@ curl -u token:very-secret \
http://localhost:3000/mtb/etl/patient-record http://localhost:3000/mtb/etl/patient-record
``` ```
Als Content-Type kann auch `application/vnd.dnpm.v2.mtb+json` verwendet werden.
Antwort: Antwort:
``` ```
@@ -123,7 +125,7 @@ Resultierender Kafka-Record:
* **Key**: `{ "pid" : "P1" }` * **Key**: `{ "pid" : "P1" }`
* **Headers**: * **Headers**:
* `requestId`: `8473fa67-8b18-4e8f-aa89-874f74fcc672` * `requestId`: `8473fa67-8b18-4e8f-aa89-874f74fcc672`
* **Value**: JSON-String mit Patienten-ID `P1` und ohne weitere Angaben: * **Value**: `{ "patient": { "id": "P1", .... } }` * **Value**: JSON-String mit Patienten-ID `P1` und ohne weitere Angaben: `{ "patient": { "id": "P1", .... } }`
Es werden keine weiteren patientenbezogenen Daten übermittelt. Es werden keine weiteren patientenbezogenen Daten übermittelt.