Skip to content

A preferential ballot voting system written in nodeJS

Notifications You must be signed in to change notification settings

ujjwall-R/SchulzeVote-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Schulze-API

This is an electoral system REST API hosted on https://schulzeapi.herokuapp.com/. It based on Schulze method of voting.

Verification

Use this link https://schulzeapi.herokuapp.com/hi to verify the working of the API.

Usage

Request:

GET /getResult HTTP/1.1
Accept: application/json
Content-Type: application/json

{
    "candidates": ["A", "B", "C", "D", "E" ......],
    "ballots" :[
                [2, 2, 2, 1, 2],
                [1, 1, 2, 3, 3],
                 .
                 .
                 .
                 .
               ]
}

Successful Response:

HTTP/1.1 200 OK

[["A","B"],["C","D"],["E"],......]

Failed Response:

HTTP/1.1 400

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

About

A preferential ballot voting system written in nodeJS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published