An API built using Fat-Free Framework.It queries the Kenyan parlianment based on constituency name.
It queries Representative name,Party of the respresentative and the County based on constituency.
Project link on Heroku is link
-Fat-Free Framework.
The front-end is built with w3.css
For the API
Exmaple to check "Kajiado North"
curl https://mweshimiwa.herokuapp.com/v1/representative/Kajiado+North
returns:
{
"Constituency":"Kajiado North",
"Name":"Hon. Manje Joseph Wathigo",
"Status":"Success",
"Message":"Representative of the constituency found"
}
The + sign represents spaces
├── app
│ ├── Api.php
│ ├── Connection.php
│ └── Users.php
├── composer.json
├── composer.lock
├── composer.phar
├── config
│ ├── config.ini
│ └── routes.ini
├── db
│ └── data.json
├── favicon.ico
├── index.php
├── mweshmiwa.png
├── Procfile
├── README.rst
├── tmp
└── ui
├── about.html
├── county.json
├── dist
├── home.html
├── images
├── macros
│ ├── footer.html
│ └── header.html
├── party.json
├── representative.json
└── usage.html
Mweshiwa API is distributed under the MIT License.