Skip to content

neueda/voting-machine

Repository files navigation

voting-machine

metrics rest service has following uri:

ip:port/metrics - retrieves all data from db

ip:port/metrics?date=2015-05-07 - retrieves data from db for specified date (date format 'YYYY-MM-DD')

ip:port/metrics?date=2015-05-01&dateTo=2015-05-07 - retrieves data from db for specified date range

ip:port/metrics/{persons_card_code} - retrieves all data from db for specific person

date query parameters are the same for specific person data uri.

To receive result as json, provide "Accept: application/json" header.

result example :

{ "result" : [
    {
      "rf_id" : "1234567890AB",
      "vote" : 1,
      "timestamp" : "2015-05-07T10:10:10"
    }
  ]
}

in case of server side exception :

{ "error_message" : "message"}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published