-
Previously we could query the server for the remaining time of a task, and whether it was running? How to do this with getApiV2ClientEvaluationCurrentTaskByEvaluationId() and the returned ApiTaskTemplateInfo ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi there, thanks for the question. Indeed, the In v2 this information is part of the state of the evaluation, hence the endpoint Since you provided Java / Kotlin names, please use Generally speaking, we provide for your convenience the OpenApi specification in a human readable format, the swagger editor (this is the same link as the in-editor badge in our readme). However there one cannot try out those examples as there is no DRES instance. If enabled, this documentation can also be accessed by |
Beta Was this translation helpful? Give feedback.
Hi there, thanks for the question.
Indeed, the
api/v2/client/evaluation/currentTask/{evaluationId}
endpoint only provides information on the current task template as a feature.In v2 this information is part of the state of the evaluation, hence the endpoint
/api/v2/evaluation/state/list
provides this information in the fieldtimeLeft
. Please note that the fieldstimeElapsed
andtimeLeft
are seconds. Its sum might be not what the template suggests, as administrators can modify the time of a task on-the-fly.Since you provided Java / Kotlin names, please use
getApiV2EvaluationStateList
, which returns an array ofApiEvaluationState
objects.Generally speaking, we provide for your convenienc…