Skip to main content
Version: 2.5

GET

Given the id, returns the batch simulation object.

Request​

Parameters​

NameLocated inDescriptionRequiredSchema
idpathID of simulationYesstring

Example request

curl -X GET http://localhost:8080/api/simulations/batch/{id} \
-H 'Accept: application/json'

Response​

StatusMeaningDescriptionSchema
200OKRequest was completed successfullyInline
404Not FoundSimulation not foundInline

Response Schema​

Status Code 200

NameTypeRequiredDescription
idstring(uuid)true
progressfloattrueProgress of running batch process
ticksIntegertrueNumber of ticks per run
runsIntegertrueNumber of runs
timestampLongtrueWhen the batch run started
metadataobjecttrue
dataExportPathStringWhere the data is exported

Example 200 response body

{
"id":"ae0d07c4-2942-4ea6-9fc1-a93f35b10ff4",
"progress":1.0,
"ticks":100,
"runs":10,
"timestamp":1549622693467,
"metadata":{
"kind":"pojo",
"schema":{...}
}
}

Status Code 404

NameTypeRequired
messagestringtrue

Example 404 response body

{
"message": "Could not find simulation '5af75d69-1926-4ef2-a56f-07ad5f85673b'"
}

DELETE

Given the id, deletes the simulation.

Request​

Parameters​

NameLocated inDescriptionRequiredSchema
idpathid of simulationYesstring

Example request

curl -X DELETE \
http://localhost:8080/api/simulations/batch/a098275a-307d-4d65-b8a5-47b9b484c609 \
-H 'Cache-Control: no-cache'

Response​

StatusMeaningDescriptionSchema
204No ContentRequest was completed successfullyNone
404Not FoundSimulation not foundInline

Response Schema​


Status Code 404

NameTypeRequired
messagestringtrue

Example 404 response body

{
"message": "Could not find simulation '5af75d69-1926-4ef2-a56f-07ad5f85673b'"
}