Versionen im Vergleich

Schlüssel

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

Inhalt

Untergeordnete Seiten (Anzeige untergeordneter Seiten)

The available Swagger UI for the Congree REST API is located in the following URL: http://localhost/congree/swagger

Congree REST API endpoints are located at http:///congree/api

Account

...

Status
colourGreen
titlePOST

...

/congree/api/Account/v1/SignOut

...

You can use this call to release a locked license. Otherwise, a locked license will be released after a 20 minutes timeout.

A Congree license is locked after the first Congree REST API call.

AuthoringMemory

...

Status
colourGreen
titlePOST

...

/congree/api/AuthoringMemory/v1/ImportXml?lang={CultureName}

...

The culture name in the format languagecode2-country/regioncode2languagecode2 is a lowercase two-letter code derived from ISO 639-1. country/regioncode2 is derived from ISO 3166 and usually consists of two uppercase letters, or a BCP-47 language tag.

 E.g. /congree/api/AuthoringMemory/v1/ImportXml?lang=de-DE

The content type should be multipart/form-data and it should contain file XML.

Codeblock
languagejs
titleResponse
{
  "DetectedParagraphsCount": 0,
  "DetectedSentencesCount": 0,
  "AddedSentencesCount": 0,
  "FailedParagraphsCount": 0
}

Requirements

The content has to be well-formed XML with resolved entity references.

Maximum size: 10 MB

...

Status
colourGreen
titlePost

...

This endpoint requires a JSON object as parameter:

Codeblock
languagejs
{
  "Xml": "string",
  "RuleSetName": "string"
}

...

The request returns a JSON object providing the information detailed below.

Codeblock
languagejs
{
  "ResultXml": "string",
  "Sentences": [
    {
      "Id": 0,
      "ContextId": 0,
      "DisplayContent": "string",
      "SearchResults": [
        {
          "SearchMode": "Similar",
          "Similarity": 0,
          "Class": "string",
          "DisplayContent": "string",
          "ApplyContent": "string",
          "Evaluation": "Approved",
          "Attributes": [
            {
              "Name": "string",
              "Values": [
                "string"
              ]
            }
          ],
          "Penalties": [
            {
              "PenaltyType": "DifferentText",
              "Value": 0
            }
          ]
        }
      ]
    }
  ]
}

...

Authoring Memory: Attributes

...

Status
colourGreen
titlePost

...

/api/AuthoringMemory/v1/Attributes

...

Status
colourBlue
titleget

...

Status
colourRed
titledeleted

...

Attributes can be specified by:

  • Type (string, optional): Type = ['Text', 'Picklist'],
  • Name (string, optional): Name
  • Values (Array[string], optional): Available values

...

:

...

Status
colourGreen
titlePost

...

Status
colourBlue
titleget

...

Status
colourBlue
titleget

...

/

...

/

...

/congree/api/AuthoringMemory/v2/Sentences

...

Deletes sentences from Authoring Memory

The body of the request should contain the options you can find in the table below in the following form:

Codeblock
languagejs
titleResponse
{
  "ClearImportedSentences" : true,
  "ClearDataGroomingSentences": true
}

...

ClearImportedSentences

...

/congree/api

...

ClearDataGroomingSentences

...

In order to get the task status and results, use the methods described in Tasks. The result is an empty object.

Codeblock
languagejs
titleResponse
{
  "Id": "00000000-0000-0000-0000-000000000000"
}
Codeblock
languagejs
titleRenponse example
collapsetrue
{
  "Id": "514290f4-fc30-48e3-99b8-0973011bd2e5"
}

Information

...

/congree/api/Information/v1/Version

...

Returns Congree Server and Web API versions

Codeblock
languagejs
titleResponse
{
  "CongreeWebApiVersion": "string",
  "CongreeVersion": "string"
}
Codeblock
languagejs
titleResponse example
collapsetrue
{
  "CongreeWebApiVersion": "5.0.14353.13448.20190325.Dev",
  "CongreeVersion": "5.0.14353.13448.20190325.Dev"
}

...

/congree/api/Information/v1/Components

...

Returns available components

The response structure corresponds to CongreeComponentInfo class, see Type definitions - IBulkCheckService - Auxiliary types.

Codeblock
languagejs
titleResponse
[
  {
    "Id": "string",
    "Name": "string"
  }
]

...

languagejs
titleResponse example
collapsetrue

...