The full access point as a Django URL is defined as such ::
r'api/latest/incident.(?P<emitter_format>[a-z]+)/vote/(?P<incident_id>[\d]+)/(?P<action>[a-z]+)', vote_handler),
So for example to get the number of vote for a given incident_id (id=1) ::
GET : http://www.incidents-transports.com/api/incident.json/vote/1/end
The answer will be ::
{
"number": 0
}
Another example would be to get the number of minus votes for the same incident_id ::
GET : http://www.incidents-transports.com/api/incident.json/vote/1/minus
The answer will be ::
{
"number": 6
}