Stream: hapi
Topic: Subscriptions enabled in CLI Server?
Alexander Kiel (Oct 15 2020 at 18:40):
Hi I try to use R4 Subscriptions with the CLI server. I have version 5.1.0 and use the following command to start it:
hapi-fhir-cli run-server -p 8082 -v r4 --allow-external-refs
I can't get subscriptions with a simple rest-hook working. I use the following Subscription resource:
{
"resourceType": "Subscription",
"status": "requested",
"criteria": "Task?status=requested",
"channel": {
"type": "rest-hook",
"endpoint": "http://localhost:8080/fhir"
}
}
After that I POST a transaction Bundle with a Task Resource. But I don't get a POST on my hook endpoint.
Alexander Kiel (Oct 17 2020 at 06:14):
One has to enable subscriptions. For me, it works best with the Docker image of the JPA Starter Server:
docker run -p 8080:8080 -e hapi.fhir.subscription.resthook_enabled=true hapiproject/hapi:latest
Last updated: Apr 12 2022 at 19:14 UTC