-
Notifications
You must be signed in to change notification settings - Fork 2
/
req.http
122 lines (102 loc) · 3.18 KB
/
req.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
### Health
GET http://localhost:3000/health
### Register Student
POST http://localhost:3000/register
Content-Type: application/json
{
"email": "[email protected]",
"firstName": "Test",
"password":"123456",
"lastName": "User",
"college": "PCET",
"course": "BE",
"branch": "COMP",
"year": 2021,
"div": "B",
"rollNumber": 256,
"isStudent":true,
"age": 18,
"dob": 187459,
"gender": "M",
"bloodGroup": "B+",
"aadharNumber": 74984898498,
"contactNumber": 879879879,
"emergencyContact": 549848498,
"currentAddress": "NA",
"city": "NASKS",
"state": "MH",
"pincode": 415875,
"haCovid": false,
"startCovidDate": 184847548,
"endCovidDate": 14541587,
"isVaccinated": false,
"vaccineType": "N",
"dateOfDose1": null,
"dateOfDose2": null,
"isRegisteredoncowin": false,
"caDonateblood": false,
"caDonateplasma": false,
"isRecovered":null
}
### Login User
POST http://localhost:3000/login
Content-Type: application/json
{
"email":"[email protected]",
"password":"123456"
}
### Get User Data
GET http://localhost:3000/get-user
Content-Type: application/json
Authorization: Token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYwOWZhNmI2Y2JlMzljMmM3NDMwNzdjNyIsImlhdCI6MTYyMTA3NTYzOX0.MXtJeEqYDT0AXQIGZo6US1qZTORafKh-Pv3vQmzgtLQ
### Reset Password p-1
POST http://localhost:3000/reset
Content-Type: application/json
{
"email":"[email protected]",
"aadharNumber":111122223333
}
### Reset Password P-2
POST http://localhost:3000/generate-new
Content-Type: application/json
{
"hash":"$2b$10$BOihAqKGBRxXFjEqpPL4lO8gwa8QJt7hXTTl.PTpyKdpU9Nf9gAga",
"newPassword":"123456"
}
### Update User Data
POST http://localhost:3000/update-user
Content-Type: application/json
Authorization: Token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYwOWZhNmI2Y2JlMzljMmM3NDMwNzdjNyIsImlhdCI6MTYyMTA3NTYzOX0.MXtJeEqYDT0AXQIGZo6US1qZTORafKh-Pv3vQmzgtLQ
{
"firstName":789
}
### Add Request
POST http://localhost:3000/add-request
Content-Type: application/json
Authorization: Token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYwOWZhNmI2Y2JlMzljMmM3NDMwNzdjNyIsImlhdCI6MTYyMTA3NTYzOX0.MXtJeEqYDT0AXQIGZo6US1qZTORafKh-Pv3vQmzgtLQ
{
"requestType":"testing",
"requestObject":{
"name":123,
"lalal":456
}
}
### Get User Requests
GET http://localhost:3000/get-requests
Content-Type: application/json
Authorization: Token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYwOWZhNmI2Y2JlMzljMmM3NDMwNzdjNyIsImlhdCI6MTYyMTA3NTYzOX0.MXtJeEqYDT0AXQIGZo6US1qZTORafKh-Pv3vQmzgtLQ
### Add Volunteer
POST http://localhost:3000/add-volunteer
Content-Type: application/json
Authorization: Token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYwOWZhNmI2Y2JlMzljMmM3NDMwNzdjNyIsImlhdCI6MTYyMTA3NTYzOX0.MXtJeEqYDT0AXQIGZo6US1qZTORafKh-Pv3vQmzgtLQ
{
"volunteerType":"testing",
"volunteerObject":{
"name":123,
"lalal":456
}
}
### Get User Volunteer
GET http://localhost:3000/get-volunteers
Content-Type: application/json
Authorization: Token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjYwOWZhNmI2Y2JlMzljMmM3NDMwNzdjNyIsImlhdCI6MTYyMTA3NTYzOX0.MXtJeEqYDT0AXQIGZo6US1qZTORafKh-Pv3vQmzgtLQ