Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.

...

ParameterDescription
hostThe address of the server hosting Congree Authoring Server
filenameThe name of the file to be imported. The file must be either a valid file, e.g. the referenced DTD must be accessible or a well-formed XML file.
cultureThe code of the language the imported file is written in.
tokenThe Bearer token acquired during the authentication.

While importing documents into the Authoring Memory it is possible to assign attributes to the import. Those attributes can later be used for different purpose like filtering them by certain usage areas or identifying them by an ID coming from a CMS.

To add attributes you just need to add another parameter to the request specifying the attribute(s) you want to assign. The general syntax looks like shown below:

Codeblock
languagejs
[
  {
    "Name": [attribute name],
    "Values": [
      [attribute value]
    ]
  }
]


PropertyDescription
attribute nameThe name of the attribute you want to assign.
attribute valueA string array containg the value(s) of the attribute

Let's assume you want to assign the attribute "usageArea" with the values "Marketing" and "TechPubs" and the attribute "CMS_Id". The JSON structure will look like this:

Codeblock
languagejs
[
  {
    "Name": "usageArea",
    "Values": [
      "Marketing",
	  "TechPubs"
    ]
  },
{
    "Name": "CMS_Id",
    "Values": [
      "Id001"
    ]
  }
]


Searching for sentences in the Authoring Memory

...