From 8647502da113f3abda7c08b24ed5be10fea7d1a7 Mon Sep 17 00:00:00 2001 From: Tadgh Date: Fri, 20 Nov 2020 10:32:59 -0500 Subject: [PATCH] update to docs to indicate requests to default partition (#2186) --- .../docs/server_jpa_partitioning/partitioning.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/docs/server_jpa_partitioning/partitioning.md b/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/docs/server_jpa_partitioning/partitioning.md index c62b6475e71..dd9b19f3417 100644 --- a/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/docs/server_jpa_partitioning/partitioning.md +++ b/hapi-fhir-docs/src/main/resources/ca/uhn/hapi/fhir/docs/server_jpa_partitioning/partitioning.md @@ -87,6 +87,20 @@ The following snippet shows a server with this configuration. {{snippet:classpath:/ca/uhn/hapi/fhir/docs/PartitionExamples.java|multitenantServer}} ``` +Once enabled, HTTP Requests to the FHIR server must include the name of the partition in the request, for identification purposes. With no multitenancy, a request to create a Patient could look like this: + +```HTTP +POST www.example.com/fhir/Patient +``` + +With partitioning enabled, if we were to now create a patient in the `DEFAULT` paritition, the request would now look like this: + + +``` +POST www.example.com/fhir/DEFAULT/Patient +``` + +Failure to add a partition name to the request path will result in an error when multitenancy is enabled. # Limitations