POST api/DVRStream/UploadMedia

Request Information

URI Parameters

None.

Body Parameters

UploadRecordingModel
NameDescriptionTypeAdditional information
UploadType

integer

None.

MimeType

string

None.

Data

Collection of byte

None.

FileName

string

None.

RecordedTimeStamp

integer

None.

EncodedData

string

None.

Hash

string

None.

SessionID

globally unique identifier

None.

Request Formats

application/json, text/json

Sample:
{
  "UploadType": 1,
  "MimeType": "sample string 2",
  "Data": "QEA=",
  "FileName": "sample string 3",
  "RecordedTimeStamp": 1,
  "EncodedData": "sample string 4",
  "Hash": "sample string 5",
  "SessionID": "027980ba-2e23-4cf9-bf4a-999d5f6d33af"
}

application/xml, text/xml

Sample:
<UploadRecordingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeritaTech.TransportRegistry.Data.Models">
  <SessionID>027980ba-2e23-4cf9-bf4a-999d5f6d33af</SessionID>
  <Data>QEA=</Data>
  <EncodedData>sample string 4</EncodedData>
  <FileName>sample string 3</FileName>
  <Hash>sample string 5</Hash>
  <MimeType>sample string 2</MimeType>
  <RecordedTimeStamp>1</RecordedTimeStamp>
  <UploadType>1</UploadType>
</UploadRecordingModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UploadRecordingModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.