This is the API for Accident.
Get the list of all accidents.
[
{
"id": 3,
"lplate": "vbmmmm",
"date": "2018-01-01T08:19:49.473",
"longitude": 75.78,
"latitude": 11.25,
"name": "asdfsdf",
"age": 5,
"location": "Palayam",
"description": "````",
"verified": 0
}
]
Get the list of all pedestrian accidents.
[
{
"id": 3,
"lplate": "0",
"date": "2018-01-01T08:19:49.473",
"longitude": 75.78,
"latitude": 11.25,
"name": "asdfsdf",
"age": 5,
"location": "Palayam",
"description": "sdfsdfff",
"verified": 0
}
]
This endpoint can be used to add an accident.
{
"Lplate": "tttttttttt",
"Date": "2018-01-01T08:19:49.473",
"Name": "asdfsdf",
"Age": 5,
"Description": "asdff",
"Verified": 0
}
This endpoint can be used to add suppports to a particular event.
{
"Verified": 1
}
This endpoint can be used to delete an accident.