infra
Import an infra from railjson
Changed onpost/infra/railjson
Request
- Base URL: https://demo.osrd.fr/api
- URL: https://demo.osrd.fr/api/infra/railjson
- Auth: none declared
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
Changes
- info
the
request property default value3.5.3was added
- info
- info
the
request property default value3.5.3was removed
- info