{"openapi":"3.1.0","info":{"title":"Fajnovka: live occupancy of DPO vehicles","version":"1.0.0","description":"One reading of the public transport network of Ostrava (DPO). The numbers come from the public dashboard of DPO. Each answer is kept for one minute. If the dashboard does not answer, the reading is a stored snapshot with \"live\": false."},"servers":[{"url":"https://fajnovka.annazez.com"}],"paths":{"/api/occupancy":{"get":{"operationId":"getOccupancy","summary":"How full the vehicles of DPO are now","responses":{"200":{"description":"One reading of the network.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Occupancy"}}}}}}}},"components":{"schemas":{"Occupancy":{"type":"object","additionalProperties":false,"required":["live","time","vehicles","counted","passengers","places"],"properties":{"live":{"type":"boolean","description":"True for a reading of this minute, false for the stored snapshot."},"time":{"type":"string","format":"date-time","description":"Time of the reading."},"vehicles":{"type":"integer","minimum":0,"description":"Vehicles on the road."},"counted":{"type":"integer","minimum":0,"description":"Vehicles that count their passengers."},"passengers":{"type":"integer","minimum":0,"description":"Passengers in the vehicles that count them."},"places":{"type":"integer","minimum":0,"description":"Places to sit and to stand in the vehicles that count their passengers."}}}}}}