Skip to main content
Version: 2.2

GET

Given the id, returns the simulation's config object.

Request​

Parameters​

NameLocated inDescriptionRequiredSchema
idpathID of simulationYesstring

Example request

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

Response​

StatusMeaningDescriptionSchema
200OKRequest was completed successfullyInline
404Not FoundSimulation not foundInline

Response Schema​

Status Code 200

Example 200 response body

{
"core-runner-spark.master-url": "local[*]",
"core-abm.serialize.agents": "false",
"nexus-server.port": "8080",
"core-abm-spark.checkpoint-directory": "/var/tmp",
"nexus-server.webserver-root": "console/src/main/resources/webapp",
"core-abm.backend-implementation":
"simudyne.core.graph.local.LocalGraphBackend",
"core-abm.max-messaging-phases": "50",
"core-runner-spark.log-level": "WARN",
"core-abm-spark.log-level": "WARN",
"nexus-server.hostname": "127.0.0.1",
"core-abm-spark.master-url": "local[*]"
}

Status Code 404

NameTypeRequired
messagestringtrue

Example 404 response body

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