-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.http
38 lines (24 loc) · 1.29 KB
/
app.http
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
POST http://localhost:3002/login/
Content-Type:"application/json"
{
"username": "christopher_phillips",
"password": "christy@123"
}
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkNocmlzdG9waGVyIFBoaWxsaXBzIiwiaWF0IjoxNzA3NDY4MTIxfQ.vsq43wrWpn_4mJeSZadKg2xTHyyDNCkoQVFOcZXG4EA
GET http://localhost:3002/states/28/
authorization:"Bearer "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkNocmlzdG9waGVyIFBoaWxsaXBzIiwiaWF0IjoxNzA3NDY4MTIxfQ.vsq43wrWpn_4mJeSZadKg2xTHyyDNCkoQVFOcZXG4EA"
POST http://localhost:3002/districts/
authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkNocmlzdG9waGVyIFBoaWxsaXBzIiwiaWF0IjoxNzA3NDY4MTIxfQ.vsq43wrWpn_4mJeSZadKg2xTHyyDNCkoQVFOcZXG4EA"
Content-Type:"application/json"
{
"districtName": "Bagalkot",
"stateId": 3,
"cases": 2323,
"cured": 2000,
"active": 315,
"deaths": 8
}
GET http://localhost:3002/districts/2/
authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkNocmlzdG9waGVyIFBoaWxsaXBzIiwiaWF0IjoxNzA3NDY4MTIxfQ.vsq43wrWpn_4mJeSZadKg2xTHyyDNCkoQVFOcZXG4EA"
GET http://localhost:3002//states/:stateId/stats/
authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6IkNocmlzdG9waGVyIFBoaWxsaXBzIiwiaWF0IjoxNzA3NDY4MTIxfQ.vsq43wrWpn_4mJeSZadKg2xTHyyDNCkoQVFOcZXG4EA"