Linguistic: Reporting

Reporting in Congree is done following these actions:

  1. Open a new reporting session by requesting a session ID
  2. Store the overall report for the entire document
  3. Store the reports for the different contexts
  4. Close the report session by setting the report status

Opening a report session

POST

/congree/api/Linguistic/Reporting/v1/Sessions

HTTP request to get the ID of the current reporting session

The request returns a JSON object containing the session id.

{
  "SessionId": "string"
}


Storing a document report

PUT

Congree/api/Linguistic/Reporting/v1/Sessions/{sessionid}

HTTP request to store the report

If the request was succesful it returns 200 status.


Storing a paragraph report

PUT

Congree/api/Linguistic/Reporting/v1/Sessions/{sessionid}/Paragraphs/{paragraphid}

HTTP request to store a paragraph specific report

The input is a JSON object like shown in the sample below.

{
  "Errors": [
    {
      "ErrorId": 0,
      "ErrorType": "Abbreviation",
      "ErrorCode": "string",
      "Notification": "string",
      "Proposals": [
        "string"
      ],
      "Status": "Normal"
    }
  ],
  "Context": "string"
}


PropertyDescription
ErrorsAn array of errors for the given paragraph, e.g. context.
ErrorIdThe Id of the error as returned by the document check
ErrorTypeThe category the error belongs to. Possible values are: 'Abbreviation', 'Grammar', 'Spelling', 'Style', 'Terminology', 'ValidTerm'
ErrorCodeThe code of the error as returned by the document check, i.e. the name of the rule
NotificationThe message assigned to the rule
ProposalsAn array of strings as returned by the document check
StatusThe status of the error. Possible values are: 'Normal', 'Ignored', 'Disregarded'

If the request was succesful it returns 200 status.


Setting the report status and ending the session

PUT

Congree/api/Linguistic/Reporting/v1/Sessions/{sessionid}/Status

HTTP request to finish the report session


The request expcects a JSON object a body parameter.

{
  "IsCompleteCheck": true
}


Possible values of the property "IsCompleteCheck" are true or false.