mirror of
https://github.com/CCC-MF/bwhc-kafka-rest-proxy.git
synced 2025-07-02 08:22:54 +00:00
22
README.md
22
README.md
@ -13,7 +13,21 @@ Verwendung im Zusammenspiel mit https://github.com/CCC-MF/etl-processor
|
||||
|
||||
## Konfiguration
|
||||
|
||||
Die Anwendung lässt sich mit Umgebungsvariablen konfigurieren.
|
||||
Beim Start der Anwendung können Parameter angegeben werden.
|
||||
|
||||
```
|
||||
Usage: bwhc-kafka-rest-proxy [OPTIONS] --token <TOKEN>
|
||||
|
||||
Options:
|
||||
--bootstrap-server <BOOTSTRAP_SERVER>
|
||||
Kafka Bootstrap-Server(s) [env: KAFKA_BOOTSTRAP_SERVERS=] [default: kafka:9094]
|
||||
--topic <TOPIC>
|
||||
Kafka Topic [env: APP_KAFKA_TOPIC=] [default: etl-processor_input]
|
||||
--token <TOKEN>
|
||||
bcrypt hashed Security Token [env: APP_SECURITY_TOKEN=]
|
||||
```
|
||||
|
||||
Die Anwendung lässt sich auch mit Umgebungsvariablen konfigurieren.
|
||||
|
||||
* `APP_KAFKA_SERVERS`: Zu verwendende Kafka-Bootstrap-Server als kommagetrennte Liste
|
||||
* `APP_KAFKA_TOPIC`: Zu verwendendes Topic zum Warten auf neue Anfragen. Standardwert: `etl-processor_input`
|
||||
@ -81,10 +95,10 @@ Resultierender Kafka-Record:
|
||||
|
||||
#### Löschen von Patienten
|
||||
|
||||
Anfrage auch hier mit **curl**:
|
||||
Anfrage auch hier mit *curl*:
|
||||
|
||||
```bash
|
||||
curl -v -u token:very-secret \
|
||||
curl -u token:very-secret \
|
||||
-H "Content-Type: application/json" \
|
||||
-X DELETE \
|
||||
http://localhost:3000/mtbfile/P1
|
||||
@ -112,4 +126,4 @@ In optionaler Verbindung mit [Key-Based-Retention](https://github.com/CCC-MF/etl
|
||||
letzte und aktuelle Record, hier die Information eines Consent-Widerspruchs, in Kafka vorgehalten.
|
||||
|
||||
Trifft dieser Kafka-Record im [ETL-Prozessor](https://github.com/CCC-MF/etl-processor) ein, so wird dort ebenfalls eine
|
||||
Löschanfrage ausgelöst, da der Consent-Status den Wert `rejected` hat.
|
||||
Löschanfrage ausgelöst, da der Consent-Status den Wert `rejected` hat.
|
||||
|
Reference in New Issue
Block a user