action tfl_accident_stats_get { label: "Gets all accident details for accidents occuring in the specified year" provider: tfl method: GET path: "/AccidentStats/{year}" encoding: json input: { type: "object" properties: { year: { type: "integer" format: "int32" } } required: ["year"] additionalProperties: false } output: { type: "array" items: { type: "object" properties: { borough: { type: "string" } casualties: { type: "array" items: { type: "object" properties: { age: { type: "integer" format: "int32" } ageBand: { type: "string" } class: { type: "string" } mode: { type: "string" } severity: { type: "string" } } } } date: { type: "string" format: "date-time" } id: { type: "integer" format: "int32" } lat: { type: "number" format: "double" } location: { type: "string" } lon: { type: "number" format: "double" } severity: { type: "string" } vehicles: { type: "array" items: { type: "object" properties: { type: { type: "string" } } } } } } } }