Tasks

 Tasks endpoints allows to get the current status of the asynchronous task and it result.

GET

/congree/api/Tasks/v1/Status/{taskId}

Gets task status


Response
{
  "State": "string",
  "ErrorInfo": {
    "Code": int,
    "Message": "string"
  }
}

Available states: Pending, InProgress, Success, Failed

ErrorInfo present in state Failed only. In other cases it is null.

GET

/congree/api/Tasks/v1/Result/{taskId}

Gets task result

Available only for finished tasks (states: Success, Failed)

Response
{
  "Result": <result object>
}

In failed state "Result" contains ErrorInfo object. In success state - corresponding result. Result available 5 minutes after the task is completed.