API specs for wecitizens (openapi)
Website on :
- https://wecitizens.github.io/wecitizens_api_doc/ (ReDoc)
- https://wecitizens.github.io/wecitizens_api_doc/swagger-ui/ (swagger-ui)
- https://wecitizens.github.io/wecitizens_api_doc/wecitizens_openapi.yml (specs)
npm install
to install packagenpm start
to run local website
- ReDoc : https://github.com/Rebilly/ReDoc
- Swagger-UI : https://github.com/swagger-api/swagger-ui
Belgian provinces and regions : https://en.wikipedia.org/wiki/ISO_3166-2:BE
- local route : http://localhost:3000/api
- public route : https://wecitizens.github.io/wecitizens_api_doc/api
- Find main election through /vote/election/2018_be_municipal.json
- Get zip code. Use
6850
- Find local election through /vote/election/2018_be_municipal/district/be_6850.json.
- Find related poll through /gps/poll/2018_be_municipal_be_6850.json so you get the survey key.
- Get the survey through /gps/survey/2018_be_municipal_wallonia_rural.json
Specs could generate nodejs API through