(https://covid-api-zim.herokuapp.com/)
This repo is created to get all the details of COVID-19 in Zimbabwe. These API will help to get the details of provinces in Zimbabwe. The routes for the API are mentioned below:
To work with the api you must have to install the following:
- NodeJS - Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
- MongoDB Server - NoSql Database and server
- Postman - API development environment
Before doing anything you have to clone or download and unzip the project folder, open terminal and navigate to the project folder and run:
npm install
This will install all the dependencies required by the project.
To start using this API, start your local database server, open terminal and navigate to the project folder and run:
npm run start
If an error occur, check your database server or check if you have installed the prerequisites correctly.
If there was no error, open Postman and create and send a new get request to:
http://localhost:3000/
{
name:'name of province',
cases:'Total Confirmed cases',
recovered:'Recoveries',
deaths:'Death',
test: 'PCR tests'
}
S.No. | Route | Method | Description |
---|---|---|---|
1. | / | GET | Welcome to APIs |
2. | /daily | GET | Summary of daily data |
3. | /cdaily | GET | Cumulative daily data |
4. | /province | GET | Summary of daily data of all provinces |
5. | /cprovince | GET | Cumulative data of every provinces |
This is the source of data for the APIs. This data is officially provide by the Govt. of Zimbabwe.