election_day.views.upload.rest

Functions

authenticate(→ None)

view_upload_rest(→ onegov.core.types.RenderData)

Upload election or vote results via REST using the internal format.

Module Contents

election_day.views.upload.rest.authenticate(request: onegov.election_day.request.ElectionDayRequest) None[source]
election_day.views.upload.rest.view_upload_rest(self: Canton | Municipality, request: onegov.election_day.request.ElectionDayRequest) onegov.core.types.RenderData[source]

Upload election or vote results via REST using the internal format.

Example usage:

curl http://wahlen-abstimmungen.onegovcloud.ch/upload –include –user :<token> –header “Accept-Language: de_CH” –form “type=vote” –form “id=vote-against-something” –form “results=@results.csv