POST api/DVRStream/UploadRecording

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": "768e6c95-f093-4683-891d-3848b9ae8a17"
}

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>768e6c95-f093-4683-891d-3848b9ae8a17</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

MobileSessionResponseModel
NameDescriptionTypeAdditional information
IsRegistered

boolean

None.

SessionID

globally unique identifier

None.

DeviceID

globally unique identifier

None.

ContactID

globally unique identifier

None.

ErrorMessage

string

None.

ErrorCode

eErrorCodes

None.

HTMLViewData

string

None.

IsRemoteAddress

boolean

None.

HostAddress

string

None.

HashCode

string

None.

LocalData

Collection of byte

None.

LocalDataID

globally unique identifier

None.

Command

string

None.

CommandID

globally unique identifier

None.

CommandMessage

string

None.

ValidationToken

string

None.

RequiresDriverPIN

boolean

None.

HasMultipleEmployees

boolean

None.

HasMultipleVehicles

boolean

None.

ApplicationMode

integer

None.

DVRMode

integer

None.

StartActivity

string

None.

StartPage

string

None.

StartPageArgs

string

None.

ReportCategories

Collection of RecordDescriptorModel

None.

ReportChannels

Collection of RecordDescriptorModel

None.

SubscibedReportChannels

Collection of RecordDescriptorModel

None.

Response Formats

application/json, text/json

Sample:
{
  "IsRegistered": true,
  "SessionID": "179ff0a3-4245-4664-b006-b85015c3511b",
  "DeviceID": "70922eac-ebf8-4fcd-a6ac-ae7024838b60",
  "ContactID": "248a0e9b-c7ca-476a-b0c2-df08490a7cef",
  "ErrorMessage": "sample string 3",
  "ErrorCode": 0,
  "HTMLViewData": "sample string 4",
  "IsRemoteAddress": true,
  "HostAddress": "sample string 6",
  "HashCode": "sample string 7",
  "LocalData": "QEA=",
  "LocalDataID": "295d156e-2072-474f-917d-b43a7d35a391",
  "Command": "sample string 8",
  "CommandID": "3deb0c8f-1f8e-4318-bc83-9b472b67462c",
  "CommandMessage": "sample string 9",
  "ValidationToken": "sample string 10",
  "RequiresDriverPIN": true,
  "HasMultipleEmployees": true,
  "HasMultipleVehicles": true,
  "ApplicationMode": 1,
  "DVRMode": 1,
  "StartActivity": "sample string 14",
  "StartPage": "sample string 15",
  "StartPageArgs": "sample string 16",
  "ReportCategories": [
    {
      "ObjectID": "d73c0550-5e77-468c-bb97-69fe04a0c3d8",
      "Name": "sample string 2",
      "AdditionalData": "sample string 3",
      "RecordType": "sample string 4",
      "RecordVersionValue": 5,
      "LastModificationDate": "2018-10-15T16:46:32.1977053+03:00",
      "LastModified": 7,
      "IsDeleted": true
    },
    {
      "ObjectID": "d73c0550-5e77-468c-bb97-69fe04a0c3d8",
      "Name": "sample string 2",
      "AdditionalData": "sample string 3",
      "RecordType": "sample string 4",
      "RecordVersionValue": 5,
      "LastModificationDate": "2018-10-15T16:46:32.1977053+03:00",
      "LastModified": 7,
      "IsDeleted": true
    }
  ],
  "ReportChannels": [
    {
      "ObjectID": "d73c0550-5e77-468c-bb97-69fe04a0c3d8",
      "Name": "sample string 2",
      "AdditionalData": "sample string 3",
      "RecordType": "sample string 4",
      "RecordVersionValue": 5,
      "LastModificationDate": "2018-10-15T16:46:32.1977053+03:00",
      "LastModified": 7,
      "IsDeleted": true
    },
    {
      "ObjectID": "d73c0550-5e77-468c-bb97-69fe04a0c3d8",
      "Name": "sample string 2",
      "AdditionalData": "sample string 3",
      "RecordType": "sample string 4",
      "RecordVersionValue": 5,
      "LastModificationDate": "2018-10-15T16:46:32.1977053+03:00",
      "LastModified": 7,
      "IsDeleted": true
    }
  ],
  "SubscibedReportChannels": [
    {
      "ObjectID": "d73c0550-5e77-468c-bb97-69fe04a0c3d8",
      "Name": "sample string 2",
      "AdditionalData": "sample string 3",
      "RecordType": "sample string 4",
      "RecordVersionValue": 5,
      "LastModificationDate": "2018-10-15T16:46:32.1977053+03:00",
      "LastModified": 7,
      "IsDeleted": true
    },
    {
      "ObjectID": "d73c0550-5e77-468c-bb97-69fe04a0c3d8",
      "Name": "sample string 2",
      "AdditionalData": "sample string 3",
      "RecordType": "sample string 4",
      "RecordVersionValue": 5,
      "LastModificationDate": "2018-10-15T16:46:32.1977053+03:00",
      "LastModified": 7,
      "IsDeleted": true
    }
  ]
}

application/xml, text/xml

Sample:
<MobileSessionResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeritaTech.TransportRegistry.Data.Models">
  <ApplicationMode>1</ApplicationMode>
  <Command>sample string 8</Command>
  <CommandID>3deb0c8f-1f8e-4318-bc83-9b472b67462c</CommandID>
  <CommandMessage>sample string 9</CommandMessage>
  <ContactID>248a0e9b-c7ca-476a-b0c2-df08490a7cef</ContactID>
  <DVRMode>1</DVRMode>
  <DeviceID>70922eac-ebf8-4fcd-a6ac-ae7024838b60</DeviceID>
  <ErrorCode>None</ErrorCode>
  <ErrorMessage>sample string 3</ErrorMessage>
  <HTMLViewData>sample string 4</HTMLViewData>
  <HasMultipleEmployees>true</HasMultipleEmployees>
  <HasMultipleVehicles>true</HasMultipleVehicles>
  <HashCode>sample string 7</HashCode>
  <HostAddress>sample string 6</HostAddress>
  <IsRegistered>true</IsRegistered>
  <IsRemoteAddress>true</IsRemoteAddress>
  <LocalData>QEA=</LocalData>
  <LocalDataID>295d156e-2072-474f-917d-b43a7d35a391</LocalDataID>
  <ReportCategories>
    <RecordDescriptorModel>
      <IsDeleted>true</IsDeleted>
      <LastModificationDate>2018-10-15T16:46:32.1977053+03:00</LastModificationDate>
      <LastModified>7</LastModified>
      <AdditionalData>sample string 3</AdditionalData>
      <Name>sample string 2</Name>
      <ObjectID>d73c0550-5e77-468c-bb97-69fe04a0c3d8</ObjectID>
      <RecordType>sample string 4</RecordType>
      <RecordVersionValue>5</RecordVersionValue>
    </RecordDescriptorModel>
    <RecordDescriptorModel>
      <IsDeleted>true</IsDeleted>
      <LastModificationDate>2018-10-15T16:46:32.1977053+03:00</LastModificationDate>
      <LastModified>7</LastModified>
      <AdditionalData>sample string 3</AdditionalData>
      <Name>sample string 2</Name>
      <ObjectID>d73c0550-5e77-468c-bb97-69fe04a0c3d8</ObjectID>
      <RecordType>sample string 4</RecordType>
      <RecordVersionValue>5</RecordVersionValue>
    </RecordDescriptorModel>
  </ReportCategories>
  <ReportChannels>
    <RecordDescriptorModel>
      <IsDeleted>true</IsDeleted>
      <LastModificationDate>2018-10-15T16:46:32.1977053+03:00</LastModificationDate>
      <LastModified>7</LastModified>
      <AdditionalData>sample string 3</AdditionalData>
      <Name>sample string 2</Name>
      <ObjectID>d73c0550-5e77-468c-bb97-69fe04a0c3d8</ObjectID>
      <RecordType>sample string 4</RecordType>
      <RecordVersionValue>5</RecordVersionValue>
    </RecordDescriptorModel>
    <RecordDescriptorModel>
      <IsDeleted>true</IsDeleted>
      <LastModificationDate>2018-10-15T16:46:32.1977053+03:00</LastModificationDate>
      <LastModified>7</LastModified>
      <AdditionalData>sample string 3</AdditionalData>
      <Name>sample string 2</Name>
      <ObjectID>d73c0550-5e77-468c-bb97-69fe04a0c3d8</ObjectID>
      <RecordType>sample string 4</RecordType>
      <RecordVersionValue>5</RecordVersionValue>
    </RecordDescriptorModel>
  </ReportChannels>
  <RequiresDriverPIN>true</RequiresDriverPIN>
  <SessionID>179ff0a3-4245-4664-b006-b85015c3511b</SessionID>
  <StartActivity>sample string 14</StartActivity>
  <StartPage>sample string 15</StartPage>
  <StartPageArgs>sample string 16</StartPageArgs>
  <SubscibedReportChannels>
    <RecordDescriptorModel>
      <IsDeleted>true</IsDeleted>
      <LastModificationDate>2018-10-15T16:46:32.1977053+03:00</LastModificationDate>
      <LastModified>7</LastModified>
      <AdditionalData>sample string 3</AdditionalData>
      <Name>sample string 2</Name>
      <ObjectID>d73c0550-5e77-468c-bb97-69fe04a0c3d8</ObjectID>
      <RecordType>sample string 4</RecordType>
      <RecordVersionValue>5</RecordVersionValue>
    </RecordDescriptorModel>
    <RecordDescriptorModel>
      <IsDeleted>true</IsDeleted>
      <LastModificationDate>2018-10-15T16:46:32.1977053+03:00</LastModificationDate>
      <LastModified>7</LastModified>
      <AdditionalData>sample string 3</AdditionalData>
      <Name>sample string 2</Name>
      <ObjectID>d73c0550-5e77-468c-bb97-69fe04a0c3d8</ObjectID>
      <RecordType>sample string 4</RecordType>
      <RecordVersionValue>5</RecordVersionValue>
    </RecordDescriptorModel>
  </SubscibedReportChannels>
  <ValidationToken>sample string 10</ValidationToken>
</MobileSessionResponseModel>