An API providing informational access to structured data about: Malawi districts, agriculture (crops, livestock & fish) and currency exchange rates
# Malawi Info API
A Django-based microservice API providing **informational access** to structured data about:
- Malawi districts
- Agriculture (crops, livestock & fish)
- Currency exchange rates
- Demographics
- Health
---
## Features
- Query district-level data (e.g., population, climate, elevation)
- Get agriculture details by Chichewa, English, or scientific name
- Perform basic MWK-to-foreign currency conversions using static rates
- YAML-based data source → SQLite → Django
- Modular microservice design (per app)
---
## Example Endpoints
### Districts (`/api/mwinfo/`)
| Endpoint | Method | Description |
|---------|--------|-------------|
|
mw-info-api-5.onrender.com | GET | List all districts |
all districts
| Endpoint | Method | Description |
|---------|--------|-------------|
|
mw-info-api-5.onrender.com | GET | Full info for Lilongwe |
Lilongwe info
### Details
| Field | Data type | Description |
|-------|-----------|-------------|
| Name | String | District names |
| Region | String | Regions |
| Latitude | Decimal | Latitudes |
| Longitude | Decimal | Latitudes |
| Population_2023 | Int | District population in 2023 |
| Area_km | Decimal | District area in square kilometres |
| Density | Decimal | Density |
| Elevation | Decimal | Elevation |
| Climate | String | Climate type in a district |
| Timezone | String | District timezone |
| Languages | String | Languages in a district |
---
### Agriculture (`/api/agriinfo/`)
| Endpoint | Method | Description |
|----------|--------|-------------|
|
mw-info-api-5.onrender.com | GET | Search crop or fish by name (Chichewa/English/Scientific) |
query 'chimanga'
### Details
| Field | Data type | Description |
|-------|-----------|-------------|
| Chichewa | String | Crop name in chichewa |
| English | String | Crop name in english |
| Scientific | String | Scientific c …