Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 1.69 KB

restapi.md

File metadata and controls

17 lines (12 loc) · 1.69 KB

The following table describes the REST API implemented in different services:

Type Path Descrption Services
GET api/search Perform the database search and return the content:
queries: The search string.
index: The DB index.
size: The return size.
web
gateway
GET api/histogram Perform the database search and return the bucketized values of the specified fields:
queries: The search string.
index: The DB index.
field: The field to be bucketized.
size: The max size.
web
gateway
GET api/stats Perform the database search and return the statistics (average, min, max) of the specified fields:
queries: The search string.
index: The DB index.
fields: The field list, comma delimited.
web
gateway
GET api/hint Retrieve search hints of the specified database index:
index: The DB indexe list, comma delimited
web
gateway
GET recording/...mp4
recording/...mp4.png
Retrieve the sensor recording file in the mp4 format, or the thumbnail image in the png format. web
gateway
storage
POST api/upload Upload the recorded file to the storage service.
office:The office location.
sensor:The sensor id.
time: The recording starting timestamp.
gateway
storage
POST api/tokens Create a token for subsequent webrtc operations:
room: The conference room id.
web
gateway
webrtc
POST api/sensors Create a conference room and import the specified sensor stream into the room.
sensor: The sensor id.
web
gateway
webrtc
GET api/auth Authenticate the user for access. Dummy implementation in the sample. web