Skip to content

Commit

Permalink
Minor fixes for aidbox-subscriptions-to-kafka
Browse files Browse the repository at this point in the history
  • Loading branch information
ryukzak committed Oct 4, 2024
1 parent ef3aea7 commit 47f6189
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ A collection of examples on top of Aidbox FHIR platform
- [Aidbox Forms Renderer with Angular.js](aidbox-forms-renderer-angular)
- [Aidbox Forms Renderer with Angular.js (controlled mode)](aidbox-forms-renderer-angular-controlled)
- [Aidbox Notify via Custom Resources](/aidbox-notify-via-custom-resources) ([demo](https://aidbox.github.io/app-examples/aidbox-notify-via-custom-resources/))
- [Topic-Based Subscription to Kafka](/aidbox-subscriptions-to-kafka/)
- [Topic-Based Subscription to Kafka](/aidbox-subscriptions-to-kafka/) [demo](https://github.com/Aidbox/app-examples/blob/main/aidbox-subscriptions-to-kafka/README.md#demo)

## Documentation

Expand Down
7 changes: 5 additions & 2 deletions aidbox-subscriptions-to-kafka/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Objectives:
## Prerequisites

- [Docker](https://www.docker.com/)
- Cloned repository: [Github: Aidbox/examples](https://github.com/Aidbox/examples/tree/main)
- Working directory: `aidbox-subscriptions-to-kafka`

## Step 1: Set Up the Environment

Expand Down Expand Up @@ -87,6 +89,7 @@ accept: application/json
]
}
```

This resource describes the data source for the subscription but doesn't execute any activities from Aidbox.
### Create AidboxTopicDestination Resource
Expand Down Expand Up @@ -142,9 +145,9 @@ Open [Kafka UI](http://localhost:8080/) -> `Topics` -> `aidbox-forms` -> `messag
Also you can find example of k8s deployment:
- Configuration: [k8s.yaml](./k8s.yaml)
- Configuration: [k8s.yaml](https://github.com/Aidbox/examples/blob/main/aidbox-subscriptions-to-kafka/k8s.yaml)
- Also, you need to pass secrets for Aidbox and Database. See details: [Deploy Aidbox with Helm Charts](https://docs.aidbox.app/getting-started/run-aidbox-in-kubernetes/deploy-aidbox-with-helm-charts). We recommend to use helm.
- Configuration resource examples: [k8s_resources](./k8s_resources.md)
- Configuration resource examples: [k8s_resources](https://github.com/Aidbox/examples/blob/main/aidbox-subscriptions-to-kafka/k8s.yaml)
## Demo
Expand Down
49 changes: 49 additions & 0 deletions aidbox-subscriptions-to-kafka/k8s_resources.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,52 @@ accept: application/json
]
}
```

Access policies

```json
{
"id":"subscription-demo-allow-sdc",
"link":[
{
"id":"sdc-config",
"resourceType":"Operation"
},
{
"id":"topic-destination-status",
"resourceType":"Operation"
},
{
"id":"populate-questionnaire-link-id",
"resourceType":"Operation"
}
],
"meta":{
"createdAt":"2024-10-04T11:11:41.096668Z",
"versionId":"1185",
"lastUpdated":"2024-10-04T11:11:41.096668Z"
},
"engine":"allow",
"resourceType":"AccessPolicy"
}
```

```json
{
"id":"subscription-demo-rpcs",
"rpc":{
"aidbox.sdc.patient/forms-grid":true,
"aidbox.sdc.grid/get-definition":true,
"aidbox.sdc.patient/documents-workflows-grid":true
},
"meta":{
"createdAt":"2024-08-29T14:28:43.756160Z",
"versionId":"143",
"lastUpdated":"2024-08-29T14:54:40.426408Z"
},
"type":"rpc",
"engine":"allow-rpc",
"description":"public rpc methods",
"resourceType":"AccessPolicy"
}
```

0 comments on commit 47f6189

Please sign in to comment.