aboutsummaryrefslogtreecommitdiffstats
path: root/DOCUMENTS.md
diff options
context:
space:
mode:
authorFraboni, Gino (gf403a) <gino.fraboni@amdocs.com>2017-07-20 13:35:06 -0400
committergfraboni <gino.fraboni@amdocs.com>2017-07-20 13:36:12 -0400
commit629c4dc6e90840f164af0091eb00c4bcf4033f83 (patch)
tree5ebf43f889dd95c0fc7eb7d91552f4790bec8b75 /DOCUMENTS.md
parent895cd72a962de1868151288d4df1510db5280fab (diff)
Reject doc create requests if index does not exist
[AAI-62] Search Data Service should not implicitly create indexes on document write... Search Data Service will now explicitly block a document create or update if the associated index does not already exist in the document store. Change-Id: Ie96364da754aa6a2cb554b06f62a7a647181bcce Signed-off-by: gfraboni <gino.fraboni@amdocs.com>
Diffstat (limited to 'DOCUMENTS.md')
-rw-r--r--DOCUMENTS.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/DOCUMENTS.md b/DOCUMENTS.md
index ed07543..fcc0949 100644
--- a/DOCUMENTS.md
+++ b/DOCUMENTS.md
@@ -53,6 +53,10 @@ If no _Id_ is provided by the client, then a unique identifier will be generated
index - The name of the _Index_ to persist the _Document_ in.
+**Request Header**
+
+ X-Create-Index = true = Allow index to be implicitly created if it does not already exist in the document store.
+
**Request Payload**
Document contents expressed as a JSON object. (see **Syntax**)
@@ -93,6 +97,10 @@ _NOTE: If a document id is supplied then it is the responsibility of the client
index - The name of the _Index_ to persist the Document in.
id - The identifier to associate with this Document.
+**Request Header**
+
+ X-Create-Index = true = Allow index to be implicitly created if it does not already exist in the document store.
+
**Request Payload**
Document contents expressed as a JSON object. (see **Syntax**)
@@ -189,6 +197,7 @@ When performing a _Document_ update, this value must be supplied in the _If-Matc
Accept = application/json
X-TransactionId = Unique id set by client (for logging purposes)
X-FromAppId = Application identifier (for logging purposes)
+ X-Create-Index = true = Allow index to be implicitly created if it does not already exist in the document store.
Content-Type = application/json
If-Match = The ETag value for the document to be updated.