-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.http
67 lines (45 loc) · 1.99 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
POST http://localhost:3000/login/ HTTP/1.1
Content-Type: application/json
{
"username": "christopher_phillips",
"password": "chrty@123"
}
###
GET http://localhost:3000/states/ HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImNocmlzdG9waGVyX3BoaWxsaXBzIiwiaWF0IjoxNjY5MTQ1OTQyfQ.fBCb-yVqOwsnWBUyeTFlKSC11MKW5chpQZascA27RvI
###
GET http://localhost:3000/states/8 HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImNocmlzdG9waGVyX3BoaWxsaXBzIiwiaWF0IjoxNjY5MTQ1OTQyfQ.fBCb-yVqOwsnWBUyeTFlKSC11MKW5chpQZascA27RvI
###
POST http://localhost:3000/districts/ HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImNocmlzdG9waGVyX3BoaWxsaXBzIiwiaWF0IjoxNjY5MTQ1OTQyfQ.fBCb-yVqOwsnWBUyeTFlKSC11MKW5chpQZascA27RvI
Content-Type: application/json
{
"districtName": "Bagalkot",
"stateId": 3,
"cases": 2323,
"cured": 2000,
"active": 315,
"deaths": 8
}
###
GET http://localhost:3000/districts/326 HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImNocmlzdG9waGVyX3BoaWxsaXBzIiwiaWF0IjoxNjY5MTQ1OTQyfQ.fBCb-yVqOwsnWBUyeTFlKSC11MKW5chpQZascA27RvI
###
DELETE http://localhost:3000/districts/326 HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImNocmlzdG9waGVyX3BoaWxsaXBzIiwiaWF0IjoxNjY5MTQ1OTQyfQ.fBCb-yVqOwsnWBUyeTFlKSC11MKW5chpQZascA27RvI
###
PUT http://localhost:3000/districts/326 HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImNocmlzdG9waGVyX3BoaWxsaXBzIiwiaWF0IjoxNjY5MTQ1OTQyfQ.fBCb-yVqOwsnWBUyeTFlKSC11MKW5chpQZascA27RvI
Content-Type: application/json
{
"districtName": "Nadia",
"stateId": 3,
"cases": 9628,
"cured": 6524,
"active": 3000,
"deaths": 104
}
###
GET http://localhost:3000/states/2/stats/ HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImNocmlzdG9waGVyX3BoaWxsaXBzIiwiaWF0IjoxNjY5MTQ1OTQyfQ.fBCb-yVqOwsnWBUyeTFlKSC11MKW5chpQZascA27RvI