- Clone the Project
- Create a virtual environment
- Install all packages from the requirements.txt file
- Go to cmd/terminal start the server
git clone https://github.com/cavemendev-den/corona-api-india.git
vitualenv venv
source venv/bin/activate
pip3 install -r requirements.txt
cd corona-api-india
python3 manage.py runserver
cured or discharged cases,death cases,Migrated covid 19 patients
Json Response
{
"Passengers screened at airport": "15,17,327",
"Active COVID 2019 cases": "415",
"Cured/discharged cases ": "23",
"Death cases ": "7",
"Migrated COVID-19 Patient ": "1"
}
To get statewise information. We get the followings data : id,state name, confirmed cases (indian),confirmed cases (foreign)
cured/discharged, death
Takes one GET parameter states
If you need all states data at once you can pass all as the value to the get parameter :
If you need particular states you can pass an array of state ids according to the table given at the end :
url http://127.0.0.1:8000/api/get-states/?states=["1","2","3"]
{
"id": "1",
"Name of State / UT": "Andhra Pradesh",
"Total Confirmed cases (Indian National)": "5",
"Total Confirmed cases ( Foreign National )": "0",
"Cured/Discharged/Migrated": "0",
"Death": "0"
}
State / UT Name | id |
---|---|
Andhra Pradesh | 1 |
Bihar | 2 |
Chattisgarh | 3 |
Delhi | 4 |
Gujarath | 5 |
Haryana | 6 |
Himachal Pradesh | 7 |
Karnataka | 8 |
Kerala | 9 |
Madhya Pradesh | 10 |
Maharashtra | 11 |
Odisha | 12 |
Puducherry | 13 |
Punjab | 14 |
Rajasthan | 15 |
Tamil Nadu | 16 |
Telengana | 17 |
Chandigarh | 18 |
Jammu & Kashmir | 19 |
Ladakh | 20 |
Uttar Pradesh | 21 |
Uttarakhand | 22 |
West Bengal | 23 |
Total of all States | 24 |