-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathURL_Signatures.txt
94 lines (50 loc) · 2.2 KB
/
URL_Signatures.txt
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
APi Signatures for overspeeding detection system
------------------------------------------------------------Landing page for the server------------------------------------------------------
https://overspeed-detection.azurewebsites.net/ <---------------GET Request will work on browser
-------------------------------------------------------------Upload user details to the server constantly where server records data only when overspeeding with a time stamp----------------------------------------------
https://overspeed-detection.azurewebsites.net/Speed_stream <-------This is a POST Request (Will not work on browser use postman)
sample body for the post request
{
"Car_Number": "HR-23-AP-4444",
"Location": "-9.03741754643809|38.6896537",
"Speed": "250"
}
Sample Response
{"code": 200 ,"message": "Car Not overspedding right now"}
or
{"code": 200 ,"message": "Data uploaded successfully on Car overspeeding "}
or
{"code": 500 , "message": "Data upload unsuccessfull"}
or
-------------------------------------------------------------To derive the data for the car when ever it overspeeded
https://overspeed-detection.azurewebsites.net/speed_violation_details/:Car_Number <--------GET Request will work on browser also
Here Car_Number wil be replaced by the car number plate no
Example
http://127.0.0.1:8080/speed_violation_details/HR-23-AP-4444
Sample response
{
"code": 200,
"result": [
{
"_id": "5ab2614df162e82b1c8793c4",
"Car_Number": "HR-23-AP-4444",
"Location": "\"PTE Luiz I, Portugal\"",
"Speed": "250",
"Time-Stamp_key": "2018/03/21",
"Time-Stamp": "2018/03/21:12:37",
"Overspeed_Limit": "200 KMPH",
"Speed_above_overspeed_limit": 50
},
{
"_id": "5ab2616af162e82b1c8793c5",
"Car_Number": "HR-23-AP-4444",
"Location": "\"PTE Luiz I, Portugal\"",
"Speed": "250",
"Time-Stamp_key": "2018/03/21",
"Time-Stamp": "2018/03/21:13:06",
"Overspeed_Limit": "200 KMPH",
"Speed_above_overspeed_limit": 50
}
]
}
Created by Ankit