X-Git-Url: https://gerrit.onap.org/r/gitweb?p=aai%2Fsearch-data-service.git;a=blobdiff_plain;f=DOCUMENTS.md;h=fcc09491051bed4a3f1e7d5045f4035f04a17c82;hp=ed075439c2abe706a4eec5c56e12a88aa2900218;hb=refs%2Fheads%2Fmaster;hpb=49b98084ebdc6e5f2d27a60aef941e3230ff1e8a 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.