Oms API GET task list text - openmpp/openmpp.github.io GitHub Wiki
Get list of modeling tasks, including text (description and notes).
Methods:
GET /api/model/:model/task-list/text
GET /api/model/:model/task-list/text/lang/:lang
Arguments:
:model - (required) model digest or model name
Model can be identified by digest or by model name. It is recommended to use digest because it is uniquely identifies model. It is possible to use model name, which is more human readable than digest, but if there are multiple models with same name in database than result is undefined.
:lang - (optional) language code
If optional lang
argument specified then result in that language else in browser language.
If no such language exist then text portion of result (description and notes) is empty.
Call examples from browser:
http://localhost:4040/api/model/modelOne/task-list/text
http://localhost:4040/api/model/modelOne/task-list/text/lang/EN
Return example:
[
{
"ModelName": "modelOne",
"ModelDigest": "_201208171604590148_",
"Name": "taskOne",
"Txt": [
{
"LangCode": "EN",
"Descr": "Task One for Model One",
"Note": "Task One: two set of input parameters"
}
],
"Set": [],
"TaskRun": []
}
]