Skip to content
Logistics & shipping

departureboard.io

departureboard.io sandbox and mock API

The departureboard.io is a high performance API written in Golang. Its goal is to provide to main functions:<br><br> (1): A JSON API interface to the legacy National Rail SOAP API: Giving developers the ability to pull live information on departures, arrivals, and services from National Rail, without having to use the legacy SOAP API provided by National Rail. Information is still pulled directly Writes persist, data moves on a schedule and every change can fire a signed webhook.

Operations
6
Collections
-
Event types
-
example request
curl https://your-departureboard.slurry.io/api/v2.0/getArrivalsAndDeparturesByCRS/123 \
  -H "Authorization: Bearer slurry_sim_..."

Your simulation gets its own hostname, key and IP allow-list. Built from API version 2.0.

What gets simulated

Collections, relationships and state machines are worked out from the spec when you start the simulation.

  • State. Creates, updates and deletes persist and show up in later reads.
  • Behaviour. Records move through their states on a schedule you control, and you can fast-forward up to 30 days.
  • Webhooks. Every change emits a signed, retried event.
  • Failure. Per-endpoint errors, latency and chaos rules, on demand.

Operations

All 6.

  • GET/getArrivalsAndDeparturesByCRS/{CRS}
  • GET/getArrivalsByCRS/{CRS}
  • GET/getDeparturesByCRS/{CRS}
  • GET/getFastestDeparturesByCRS/{CRS}
  • GET/getNextDeparturesByCRS/{CRS}
  • GET/getServiceDetailsByID/{serviceID}