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

versionstring required

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

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

infrainteger required

Changes

Changed in 17 of the 77 revisions of this API.233331

    • the request property default value 3.5.3 was added

      request-property-default-value-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the request property default value 3.5.3 was removed

      request-property-default-value-removed

    This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the request property default value 3.5.3 was added

      request-property-default-value-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the request property default value 3.5.3 was removed

      request-property-default-value-removed

    This revision also has 25 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 534e56b95a11414See the full diff
    • added the new required request property //

      new-required-request-property

    • added the new required request property //

      new-required-request-property

    • added the new required request property //

      new-required-request-property

    • added the new required request property //

      new-required-request-property

    • removed the request property //

      request-property-removed

    • added the new optional request property //

      new-optional-request-property

    • added the new optional request property //

      new-optional-request-property

    • added the new optional request property //

      new-optional-request-property

    • the request property default value 3.5.3 was added

      request-property-default-value-added

    This revision also has 7 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • removed the request property //

      request-property-removed

    • removed the request property //

      request-property-removed

    • removed the request property //

      request-property-removed

    • removed the request property //

      request-property-removed

    • removed the request property //

      request-property-removed

    • removed the request property //

      request-property-removed

    • removed the request property //

      request-property-removed

    • added the new optional request property //

      new-optional-request-property

  • 493896ca3a79413See the full diff
    • added the new required request property //

      new-required-request-property

    • added the new required request property //

      new-required-request-property

    • added the new required request property //

      new-required-request-property

    • added the new required request property //

      new-required-request-property

    • removed the request property //

      request-property-removed

    • added the new optional request property //

      new-optional-request-property

    • added the new optional request property //

      new-optional-request-property

    • added the new optional request property //

      new-optional-request-property

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • removed the request property //

      request-property-removed

    • removed the request property //

      request-property-removed

    • removed the request property //

      request-property-removed

    • removed the request property //

      request-property-removed

    • removed the request property //

      request-property-removed

    • removed the request property //

      request-property-removed

    • removed the request property //

      request-property-removed

    • added the new optional request property //

      new-optional-request-property

    • the request property default value 3.5.3 was removed

      request-property-default-value-removed

    This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 19436075117f414See the full diff
    • added the new required request property //

      new-required-request-property

    • added the new required request property //

      new-required-request-property

    • added the new required request property //

      new-required-request-property

    • added the new required request property //

      new-required-request-property

    • removed the request property //

      request-property-removed

    • added the new optional request property //

      new-optional-request-property

    • added the new optional request property //

      new-optional-request-property

    • added the new optional request property //

      new-optional-request-property

    • the request property default value 3.5.3 was added

      request-property-default-value-added

    This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

  • 020bb8d20e2f11See the full diff
    • removed subschema #1 from the // request property oneOf list

      request-property-one-of-removed

    • added subschema #1: LineStringGeometry to the // request property oneOf list

      request-property-one-of-added

Of the 77 revisions, 2 have no diff computed.