Page
Get all hubs - Dashboard Route Method Explanation Request Response
} Priority Username Status
pagelocation by Hub ID -
Get /hubs/active GET Get allparticular
in the the activelocation.
hubs with location
Pass the hub_id in the ]} Yes
Dashboard
Add new Camerapage - /cameras/by-location/{location} GET route ] Yes
Dashboard
Get Videos page
for the /videos/by-location/{location}? For the dashboard always call the api with index 0 } No
dashboard page index=0&offset=20 GET and offset
Pass 20. ID to this URL to get the streaming
the video ]
export default VideoGrid; Yes
Get the video content /video/stream/{video_id} GET response Yes
Search
May be in dashboard
it is not needed page
for No
the demo For getting today's report pass todays date in the 13" } No
Daily security Report /incidents/by-date POST API the UI based on the weekly/monthly is
from }
13", ]} Yes
Weekly
page. TheSecurity
graphsReport
are not /incidents/by-date-range POST selected or date range selected in the UI } ] Yes
clear
Get the incidents for reports Make the table paginated so that there wont be "offset":10 }
page /incidents/complete/by-filter POST any buffer
data to theinbackend
handlingand
large data should return
backend }"camera_id":null, ] Yes
Download the incident report /incidents/report/download POST the excel data as output } Excel data Yes
Incident trends No
#The below apis are not needed for UI but needed for backend processing
videos are uploaded to the Get all necessary information from that video and
sftp
processed to the inferencing /video-log/upload
file storage GET add
The itinferencing
to the video_upload_log
function shouldtable
store the "dest": "/datadrive/oman/muscat/output/" Yes
Send the processed data to /video/inferencing
function GET processed
inclident hasdata in the dest
occured. Storepath.
all this in the ] } "status":"success" Yes
the database /incidents/upload POST reported_incidents table. } } Yes
API Route Request API
/auth/register no issue
/auth/login no issue
GET /api/overview/cameras }{location:location_name}
POST /overview }
POST /feeds
GET /api/incidents Emplty request
GET /api/incidents/stats Empty request
GET /api/incidents/options Empty request"John Smith"
"personnel":
POST /api/incidents/report }
Response API (Expected)
{[id:
}, camera id, name:"camera name", ip:"camera id"]
} ], hasMore: true
}]
}}
} "statusOptions": ["Resolved", "Under Review", "Pending", "Critical"]
}
Binary Excel file (application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
Note
-
-
If location is Null, Fetch all camera id, If location is having a name of the location fetch the camera for that perticular
Ignore search query as of now, If date is "All" it means all date and if time is "All" it means all time, Time will come in
Same camera data like overview page but in different json format. hasMore is true if more data are there to yet to s
ew", "Pending", "Critical"]
ormats-officedocument.spreadsheetml.sheet)
Sample Request
Same filtering option like overview page. Ignore search for now