v52

latestOpenAPI 3.1.0LGPLraw.githubusercontent.com2026-08-04157452441.5 KB
infra

Serialize an infra

get/infra/{infra_id}/railjson

Path parameters

infra_idinteger required

An existing infra ID

Response

The infra in railjson format

versionstring required

The version of the RailJSON format. Defaults to the current version.

Example response

{
  "extended_switch_types": [
    {
      "groups": {
        "LEFT": {
          "dst": "LEFT",
          "src": "BASE"
        },
        "RIGHT": {
          "dst": "RIGHT",
          "src": "BASE"
        }
      },
      "id": "Point",
      "ports": [
        "LEFT",
        "RIGHT",
        "BASE"
      ]
    }
  ]
}