POST api/EventReporting/GetLatestDatabaseObjects

Request Information

URI Parameters

None.

Body Parameters

DataRefreshModel
NameDescriptionTypeAdditional information
DeviceID

globally unique identifier

None.

DataRefreshDetails

Collection of DataRefreshInfoModel

None.

SectorIDS

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "DeviceID": "23794289-12cb-4d3c-bd25-77a9e1d05a40",
  "DataRefreshDetails": [
    {
      "TableName": "sample string 1",
      "LastRefreshTime": "2018-10-15T16:39:12.5633948+03:00"
    },
    {
      "TableName": "sample string 1",
      "LastRefreshTime": "2018-10-15T16:39:12.5633948+03:00"
    }
  ],
  "SectorIDS": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<DataRefreshModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeritaTech.TransportRegistry.Data.Models">
  <DataRefreshDetails>
    <DataRefreshInfoModel>
      <LastRefreshTime>2018-10-15T16:39:12.5633948+03:00</LastRefreshTime>
      <TableName>sample string 1</TableName>
    </DataRefreshInfoModel>
    <DataRefreshInfoModel>
      <LastRefreshTime>2018-10-15T16:39:12.5633948+03:00</LastRefreshTime>
      <TableName>sample string 1</TableName>
    </DataRefreshInfoModel>
  </DataRefreshDetails>
  <DeviceID>23794289-12cb-4d3c-bd25-77a9e1d05a40</DeviceID>
  <SectorIDS xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </SectorIDS>
</DataRefreshModel>

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 'DataRefreshModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.