election_day.views.upload.rest ============================== .. py:module:: election_day.views.upload.rest Functions --------- .. autoapisummary:: election_day.views.upload.rest.authenticate election_day.views.upload.rest.view_upload_rest Module Contents --------------- .. py:function:: authenticate(request: onegov.election_day.request.ElectionDayRequest) -> None .. py:function:: view_upload_rest(self: onegov.election_day.models.Canton | onegov.election_day.models.Municipality, request: onegov.election_day.request.ElectionDayRequest) -> onegov.core.types.RenderData Upload election or vote results via REST using the internal format. Example usage: curl http://wahlen-abstimmungen.onegovcloud.ch/upload --include --user : --header "Accept-Language: de_CH" --form "type=vote" --form "id=vote-against-something" --form "results=@results.csv"