Skip to content

Ysn4Irix/madina

Repository files navigation

madina


Fast API for getting moroccan cities and their districts in json/xml/csv format built with

nodejs       express       mysql

gdrive-cli


star-repo

📟

Usage

The number of requests per user is limited to 100 req/min

List cities

# with json format
GET /api/cities?format=json

# with xml format
GET /api/cities?format=xml

# with csv format
GET /api/cities?format=csv

Get all districts for specific city

  • Search by city Id
# with json format
GET /api/districts/{cityID}?format=json

# with xml format
GET /api/districts/{cityID}?format=xml

# with csv format
GET /api/districts/{cityID}?format=csv
  • Search by city name
# with json format
GET /api/districts?name={cityName}&format=json

# with xml format
GET /api/districts?name={cityName}&format=xml

# with csv format
GET /api/districts?name={cityName}&format=csv

🙌

❯ About

Contributing

Pull requests and stars are always welcome. For bugs and features requests, please create an issue.

Author

Ysn4Irix


📃

❯ License

Copyright © 2022-present, Ysn4Irix. Released under the MIT License.