infra
Import an infra from railjson
post/infra/railjson
Query parameters
namestring required
The name of the infrastructure.
generate_databoolean
Flag indicating whether to generate data.
Request body
Example request
{
"extended_switch_types": [
{
"groups": {
"LEFT": {
"dst": "LEFT",
"src": "BASE"
},
"RIGHT": {
"dst": "RIGHT",
"src": "BASE"
}
},
"id": "Point",
"ports": [
"LEFT",
"RIGHT",
"BASE"
]
}
]
}Response
The imported infra id