Giter Club home page Giter Club logo

rwanda's Introduction

Rwanda

This is a simple API that returns provinces, districts, sectors, villages and cells found in Rwanda.

Rwanda is organized in four provinces in addition to the Kigali city, 30 Districts, 416 Sectors, 2148 Cells and 14 837 Villages.

Endpoints

Usage


All inputs are case-insensitive.

Provinces

Returns array of country provinces , if no params is given

[
    {
        "provinceName": "Kigali"
    },
    {
        "provinceName": "East"
    },
    {
        "provinceName": "North"
    },
    {
        "provinceName": "South"
    },
    {
        "provinceName": "West"
    }
]

Available parameter for province endpoint

url/api/provinces/2 for viewing single province If province id is given it returns an object of province details. It returns [null] if province is not found.

{
    "id": 2,
    "provinceName": "East",
}

Districts

By default it returns an array of country districts, if no params (province) is given

  • Districts(province)

    If province is given it returns an array of districts found in that province. It returns [] if province is not found.

Sectors

By default it returns array of country sectors, if no params (province, district) are given

  • Sectors(province, district)

    If province and district are given it returns an array of sectors found from the given district in that province. It returns [] if either province or district is not found.

Cells

By default it returns an array of all country cells.

  • Cells(province, district, sector)

    if province, district and sector are given it returns an array of Cells found from the given sector. It returns [] if either province, district or sector is not found.

Villages

By default it returns an array of all country villages.

  • Villages(province, district, sector, cell)

    if province, district, sector and cell are given it returns an array of Villages found from the given cell. It returns [] if either province, district , sector or cell is not found.

Install - run the following scripts

  composer install
  cp .env.example .env or copy .env.example .env
  php artisan key:generate
  php artisan migrate
  php artisan db:seed
  php artisan storage:link

Feedback and issues

Any issue and feedback from the app don't hesitate to make an issue

Contributors


Niyonshuti Prince

Author

NIYONSHUTI Prince

rwanda's People

Contributors

princeniyonshuti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.