Oms API GET run list text - openmpp/openmpp.github.io GitHub Wiki
Get list of model runs, including text (description and notes).
Methods:
GET /api/model/:model/run-list/text
GET /api/model/:model/run-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:
http://localhost:4040/api/model/modelOne/run-list/text
http://localhost:4040/api/model/_201208171604590148_/run-list/text
http://localhost:4040/api/model/modelOne/run-list/text/lang/en_CA
Return example:
[
{
"ModelName": "modelOne",
"ModelDigest": "_201208171604590148_",
"Name": "Default",
"SubCount": 1,
"SubStarted": 1,
"SubCompleted": 1,
"CreateDateTime": "2021-03-11 00:27:56.583",
"Status": "s",
"UpdateDateTime": "2021-03-11 00:27:57.030",
"RunDigest": "88b8c45b77993133b07a7c85e4447d5c",
"ValueDigest": "6c5c0f48e19f67899c868688bb8a23fd",
"RunStamp": "2021_03_11_00_27_56_535",
"Txt": [
{
"LangCode": "EN",
"Descr": "Model One default set of parameters",
"Note": ""
}
],
"Opts": {},
"Param": [],
"Table": [],
"Progress": []
},
{
"ModelName": "modelOne",
"ModelDigest": "_201208171604590148_",
"Name": "Default-4",
"SubCount": 4,
"SubStarted": 4,
"SubCompleted": 4,
"CreateDateTime": "2021-03-11 00:27:57.119",
"Status": "s",
"UpdateDateTime": "2021-03-11 00:27:57.955",
"RunDigest": "c6ced1efa64dca8a98e5cd323ac7f50d",
"ValueDigest": "d900353af61f7f824ddae66b47b456ea",
"RunStamp": "2021_03_11_00_27_57_080",
"Txt": [
{
"LangCode": "EN",
"Descr": "Model One default set of parameters",
"Note": ""
}
],
"Opts": {},
"Param": [],
"Table": [],
"Progress": []
},
{
"ModelName": "modelOne",
"ModelDigest": "_201208171604590148_",
"Name": "First Task Run_Default",
"SubCount": 1,
"SubStarted": 1,
"SubCompleted": 1,
"CreateDateTime": "2021-03-11 00:27:58.054",
"Status": "s",
"UpdateDateTime": "2021-03-11 00:27:58.485",
"RunDigest": "419f0d1b7078cff499f87be5d9e8995c",
"ValueDigest": "6c5c0f48e19f67899c868688bb8a23fd",
"RunStamp": "2021_03_11_00_27_58_005",
"Txt": [
{
"LangCode": "EN",
"Descr": "Model One default set of parameters",
"Note": ""
}
],
"Opts": {},
"Param": [],
"Table": [],
"Progress": []
},
{
"ModelName": "modelOne",
"ModelDigest": "_201208171604590148_",
"Name": "First Task Run_modelOne_other",
"SubCount": 1,
"SubStarted": 1,
"SubCompleted": 1,
"CreateDateTime": "2021-03-11 00:27:58.505",
"Status": "s",
"UpdateDateTime": "2021-03-11 00:27:58.833",
"RunDigest": "ec2455261ede37787150692c460a2688",
"ValueDigest": "fb27d108fae2040fa1cae6f49704a1b7",
"RunStamp": "2021_03_11_00_27_58_005",
"Txt": [
{
"LangCode": "EN",
"Descr": "Model One other set of parameters",
"Note": ""
}
],
"Opts": {},
"Param": [],
"Table": [],
"Progress": []
},
{
"ModelName": "modelOne",
"ModelDigest": "_201208171604590148_",
"Name": "Sub-values_2_from_csv",
"SubCount": 2,
"SubStarted": 2,
"SubCompleted": 2,
"CreateDateTime": "2021-03-11 00:27:58.935",
"Status": "s",
"UpdateDateTime": "2021-03-11 00:27:59.531",
"RunDigest": "de486efd4c8d002036876a3b9a285f63",
"ValueDigest": "c91cee4876452c95717b8d2d6aaee7a5",
"RunStamp": "2021_03_11_00_27_58_895",
"Txt": [
{
"LangCode": "EN",
"Descr": "Parameter sub-values 2 from csv",
"Note": ""
}
],
"Opts": {},
"Param": [],
"Table": [],
"Progress": []
},
{
"ModelName": "modelOne",
"ModelDigest": "_201208171604590148_",
"Name": "Sub-values_4",
"SubCount": 4,
"SubStarted": 4,
"SubCompleted": 4,
"CreateDateTime": "2021-03-11 00:27:59.631",
"Status": "s",
"UpdateDateTime": "2021-03-11 00:28:00.492",
"RunDigest": "668da5c876e3c7c8742d24e17071505f",
"ValueDigest": "2ccb8ebabceb2cfb23bbca6403ac52d0",
"RunStamp": "2021_03_11_00_27_59_582",
"Txt": [
{
"LangCode": "EN",
"Descr": "Parameter sub-values 4",
"Note": ""
}
],
"Opts": {},
"Param": [],
"Table": [],
"Progress": []
},
{
"ModelName": "modelOne",
"ModelDigest": "_201208171604590148_",
"Name": "Group_sub-values_2_from_csv",
"SubCount": 2,
"SubStarted": 2,
"SubCompleted": 2,
"CreateDateTime": "2021-03-11 00:28:00.587",
"Status": "s",
"UpdateDateTime": "2021-03-11 00:28:00.921",
"RunDigest": "e36f2fbff9439a8f4f7268e50eef2986",
"ValueDigest": "d73a023253e620a3df7fc45b4b826a60",
"RunStamp": "2021_03_11_00_28_00_543",
"Txt": [
{
"LangCode": "EN",
"Descr": "Parameter group sub-values 2 from csv",
"Note": ""
}
],
"Opts": {},
"Param": [],
"Table": [],
"Progress": []
},
{
"ModelName": "modelOne",
"ModelDigest": "_201208171604590148_",
"Name": "Import_from_Default_run",
"SubCount": 1,
"SubStarted": 1,
"SubCompleted": 1,
"CreateDateTime": "2021-03-11 00:28:01.015",
"Status": "s",
"UpdateDateTime": "2021-03-11 00:28:01.256",
"RunDigest": "dcc2a68b7e86267d7efad9f8b7fd2092",
"ValueDigest": "6c5c0f48e19f67899c868688bb8a23fd",
"RunStamp": "2021_03_11_00_28_00_952",
"Txt": [
{
"LangCode": "EN",
"Descr": "Import parameters from Default run",
"Note": ""
}
],
"Opts": {},
"Param": [],
"Table": [],
"Progress": []
},
{
"ModelName": "modelOne",
"ModelDigest": "_201208171604590148_",
"Name": "Base_run_is_Sub-values_2_from_csv",
"SubCount": 2,
"SubStarted": 2,
"SubCompleted": 2,
"CreateDateTime": "2021-03-11 00:28:01.326",
"Status": "s",
"UpdateDateTime": "2021-03-11 00:28:01.619",
"RunDigest": "a57ac3d4c0cefdc09939ad7150661bed",
"ValueDigest": "c91cee4876452c95717b8d2d6aaee7a5",
"RunStamp": "2021_03_11_00_28_01_286",
"Txt": [
{
"LangCode": "EN",
"Descr": "Parameters from base run Sub-values_2_from_csv",
"Note": ""
}
],
"Opts": {},
"Param": [],
"Table": [],
"Progress": []
},
{
"ModelName": "modelOne",
"ModelDigest": "_201208171604590148_",
"Name": "Base_run_and_partial_input_set",
"SubCount": 1,
"SubStarted": 1,
"SubCompleted": 1,
"CreateDateTime": "2021-03-11 00:28:01.704",
"Status": "s",
"UpdateDateTime": "2021-03-11 00:28:01.913",
"RunDigest": "f170ec1ad8596d1f82114285c3d93eec",
"ValueDigest": "f8638fcc86441f3fd22b2c37e0ed5e47",
"RunStamp": "2021_03_11_00_28_01_661",
"Txt": [
{
"LangCode": "EN",
"Descr": "Parameters from base run and from partial input set",
"Note": ""
}
],
"Opts": {},
"Param": [],
"Table": [],
"Progress": []
},
{
"ModelName": "modelOne",
"ModelDigest": "_201208171604590148_",
"Name": "Task Run with Suppressed Tables_Default",
"SubCount": 2,
"SubStarted": 2,
"SubCompleted": 2,
"CreateDateTime": "2021-03-11 00:28:01.994",
"Status": "s",
"UpdateDateTime": "2021-03-11 00:28:02.241",
"RunDigest": "e40a172f046a248d85f0fc600d9aa133",
"ValueDigest": "74dc31c98dd0e491bfdbf0f68961576d",
"RunStamp": "2021_03_11_00_28_01_943",
"Txt": [
{
"LangCode": "EN",
"Descr": "Model One default set of parameters",
"Note": ""
}
],
"Opts": {},
"Param": [],
"Table": [],
"Progress": []
},
{
"ModelName": "modelOne",
"ModelDigest": "_201208171604590148_",
"Name": "Task Run with Suppressed Tables_modelOne_other",
"SubCount": 2,
"SubStarted": 2,
"SubCompleted": 2,
"CreateDateTime": "2021-03-11 00:28:02.253",
"Status": "s",
"UpdateDateTime": "2021-03-11 00:28:02.435",
"RunDigest": "e97dc09e7ae4965a47688eb90ba434c1",
"ValueDigest": "7dd0761dcfd04cb8def60c63a2804157",
"RunStamp": "2021_03_11_00_28_01_943",
"Txt": [
{
"LangCode": "EN",
"Descr": "Model One other set of parameters",
"Note": ""
}
],
"Opts": {},
"Param": [],
"Table": [],
"Progress": []
},
{
"ModelName": "modelOne",
"ModelDigest": "_201208171604590148_",
"Name": "Task Run with NotSuppressed Tables_Default",
"SubCount": 2,
"SubStarted": 2,
"SubCompleted": 2,
"CreateDateTime": "2021-03-11 00:28:02.572",
"Status": "s",
"UpdateDateTime": "2021-03-11 00:28:03.016",
"RunDigest": "ef9920516d16859e1705574d7e6f8891",
"ValueDigest": "e284bb8c7f1e28aa6dc5b52fa78d975d",
"RunStamp": "2021_03_11_00_28_02_520",
"Txt": [
{
"LangCode": "EN",
"Descr": "Model One default set of parameters",
"Note": ""
}
],
"Opts": {},
"Param": [],
"Table": [],
"Progress": []
},
{
"ModelName": "modelOne",
"ModelDigest": "_201208171604590148_",
"Name": "Task Run with NotSuppressed Tables_modelOne_other",
"SubCount": 2,
"SubStarted": 2,
"SubCompleted": 2,
"CreateDateTime": "2021-03-11 00:28:03.036",
"Status": "s",
"UpdateDateTime": "2021-03-11 00:28:03.372",
"RunDigest": "a5b56959d3f3efd82e7702289af43022",
"ValueDigest": "79c55110928e7d372c0570cfa2202867",
"RunStamp": "2021_03_11_00_28_02_520",
"Txt": [
{
"LangCode": "EN",
"Descr": "Model One other set of parameters",
"Note": ""
}
],
"Opts": {},
"Param": [],
"Table": [],
"Progress": []
}
]