-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.http
40 lines (29 loc) · 1.17 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
39
POST http://localhost:3000/login/
Content-Type: application/json
{
"username" : "christopher_phillips",
"password" : "christy@123"
}
###
GET http://localhost:3000/states/
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImNocmlzdG9waGVyX3BoaWxsaXBzIiwiaWF0IjoxNzA4NDEzNjg2fQ.v96Fj47M7LSZG2AIuaFu4zywF_jzZkuc7M0CFghXMV8
###
GET http://localhost:3000/states/3/
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImNocmlzdG9waGVyX3BoaWxsaXBzIiwiaWF0IjoxNzA4NDEzNjg2fQ.v96Fj47M7LSZG2AIuaFu4zywF_jzZkuc7M0CFghXMV8
###
POST http://localhost:3000/districts/
Content-Type: application/json
Authorization : Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImNocmlzdG9waGVyX3BoaWxsaXBzIiwiaWF0IjoxNzA4NDEzNjg2fQ.v96Fj47M7LSZG2AIuaFu4zywF_jzZkuc7M0CFghXMV8
{
"districtName": "Bagalkot",
"stateId": 3,
"cases": 2323,
"cured": 2000,
"active": 315,
"deaths": 8
}
###
GET http://localhost:3000/districts/8/
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImNocmlzdG9waGVyX3BoaWxsaXBzIiwiaWF0IjoxNzA4NDEzNjg2fQ.v96Fj47M7LSZG2AIuaFu4zywF_jzZkuc7M0CFghXMV8
###