forked from NeuromancersIITBBS/VehicleTrackingSystem_Backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdebugNewDriver.http
88 lines (63 loc) · 1.75 KB
/
debugNewDriver.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
# This file can be used to send requests to Rest API using the vscode extension
# https://marketplace.visualstudio.com/items?itemName=humao.rest-client
# This file can only be used in VSCode.
### New driver request
GET http://localhost:3000/vts/new_driver/hello
### Registering a driver
POST http://localhost:3000/vts/new_driver/register
content-type: application/json
{
"driverName": "ABC",
"phoneNumber": "1234567890",
"password": "myPass!!!"
}
### Forgot password
POST http://localhost:3000/vts/new_driver/forgotPassword
content-type: application/json
{
"driverName": "ABC",
"phoneNumber": "1234567890",
"password": "myPass!!!"
}
### Login
POST http://localhost:3000/vts/new_driver/login
content-type: application/json
{
"driverName": "ABC",
"phoneNumber": "1234567890",
"password": "myPass!!!"
}
### Logout
POST http://localhost:3000/vts/new_driver/logout
content-type: application/json
{
"driverName": "ABC",
"phoneNumber": "1234567890",
"password": "myPass!!!"
}
### Get all drivers
GET http://localhost:3000/vts/admin/allDrivers
### Get all requested drivers
GET http://localhost:3000/vts/admin/getRequestedDrivers
### delete driver
DELETE http://localhost:3000/vts/admin/deleteDriver
content-type: application/json
{
"driverName": "ABC",
"phoneNumber": "1234567890",
"password": "myPass!!!"
}
### Reject new driver
DELETE http://localhost:3000/vts/admin/rejectDriver
content-type: application/json
{
"driverName": "ABC",
"phoneNumber": "1234567890",
"password": "myPass!!!"
}
### Verified driver
POST http://localhost:3000/vts/admin/DriverVerified
content-type: application/json
{
"verifiedDriverList": [{"driverName": "ABC", "phoneNumber": "1234567890", "password": "myPass!!!"}]
}