Skip to content

Charlton-A/mweshimiwa-api

Repository files navigation

Mweshimiwa-api: Simple Unoffcial API

sample web interface

Introduction

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

Requirements

-Fat-Free Framework.

Frontend

The front-end is built with w3.css

Usage

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

Project structure

├── 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

License

Mweshiwa API is distributed under the MIT License.

About

A Simple Kenyan Parlianment API built using PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published