POST api/EventReporting/QueryReportedEvents

Request Information

URI Parameters

None.

Body Parameters

QueryEventsModel
NameDescriptionTypeAdditional information
JsonString

string

None.

RequestingDeviceID

globally unique identifier

None.

RequestID

globally unique identifier

None.

SessionID

integer

None.

DeviceID

integer

None.

LastRefreshTime

date

None.

DeviceTime

date

None.

MinTime

date

None.

MaxTime

date

None.

PageNumber

integer

None.

PageSize

integer

None.

RequestTotal

boolean

None.

MaxDistance

integer

None.

EventTypes

Collection of string

None.

CurrentViewPort

ViewPortModel

None.

CurrentLocation

GPSReading

None.

EventCategories

Collection of globally unique identifier

None.

EventChannels

Collection of globally unique identifier

None.

OrderByTime

boolean

None.

PointOfInterestTypes

Collection of globally unique identifier

None.

MonitoringEventCategories

Collection of integer

None.

SearchKey

string

None.

Request Formats

application/json, text/json

Sample:
{
  "JsonString": "sample string 1",
  "RequestingDeviceID": "3293b671-cd55-4f4a-9260-e1dc8193ec5a",
  "RequestID": "2c052769-a9b8-4b0a-b6b8-f039a06d5973",
  "SessionID": 1,
  "DeviceID": 1,
  "LastRefreshTime": "2018-10-15T15:32:26.5427521+03:00",
  "DeviceTime": "2018-10-15T15:32:26.5427521+03:00",
  "MinTime": "2018-10-15T15:32:26.5437512+03:00",
  "MaxTime": "2018-10-15T15:32:26.5437512+03:00",
  "PageNumber": 5,
  "PageSize": 6,
  "RequestTotal": true,
  "MaxDistance": 8,
  "EventTypes": [
    "sample string 1",
    "sample string 2"
  ],
  "CurrentViewPort": {
    "TopLeft": {
      "Longitude": 1.1,
      "Latitude": 1.1,
      "Accuracy": 1.1,
      "Speed": 1.1,
      "Battery": 1.1,
      "ReadingTime": "2018-10-15T15:32:26.5447519+03:00",
      "Altitude": 1.1,
      "NumberOfSats": 1,
      "BatteryLevel": 1.1
    },
    "BottomRight": {
      "Longitude": 1.1,
      "Latitude": 1.1,
      "Accuracy": 1.1,
      "Speed": 1.1,
      "Battery": 1.1,
      "ReadingTime": "2018-10-15T15:32:26.5447519+03:00",
      "Altitude": 1.1,
      "NumberOfSats": 1,
      "BatteryLevel": 1.1
    }
  },
  "CurrentLocation": {
    "Longitude": 1.1,
    "Latitude": 1.1,
    "Accuracy": 1.1,
    "Speed": 1.1,
    "Battery": 1.1,
    "ReadingTime": "2018-10-15T15:32:26.5457517+03:00",
    "Altitude": 1.1,
    "NumberOfSats": 1,
    "BatteryLevel": 1.1
  },
  "EventCategories": [
    "7cc571b1-72a9-4e71-81f0-e460d3569bc4",
    "2aa4429d-03f1-4952-b204-a8298b9effa1"
  ],
  "EventChannels": [
    "304b17df-77de-49f9-a095-92a88421b370",
    "23b331a4-ba79-4393-99ea-45e08143b495"
  ],
  "OrderByTime": true,
  "PointOfInterestTypes": [
    "55722a97-5264-4139-97fe-c1500284a816",
    "aec3c4b5-8c3b-413f-aea1-894a013b9501"
  ],
  "MonitoringEventCategories": [
    1,
    2
  ],
  "SearchKey": "sample string 10"
}

application/xml, text/xml

Sample:
<QueryEventsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MeritaTech.TransportRegistry.Data.Models">
  <CurrentLocation>
    <Accuracy>1.1</Accuracy>
    <Altitude>1.1</Altitude>
    <Battery>1.1</Battery>
    <BatteryLevel>1.1</BatteryLevel>
    <Latitude>1.1</Latitude>
    <Longitude>1.1</Longitude>
    <NumberOfSats>1</NumberOfSats>
    <ReadingTime>2018-10-15T15:32:26.5457517+03:00</ReadingTime>
    <Speed>1.1</Speed>
  </CurrentLocation>
  <CurrentViewPort>
    <BottomRight>
      <Accuracy>1.1</Accuracy>
      <Altitude>1.1</Altitude>
      <Battery>1.1</Battery>
      <BatteryLevel>1.1</BatteryLevel>
      <Latitude>1.1</Latitude>
      <Longitude>1.1</Longitude>
      <NumberOfSats>1</NumberOfSats>
      <ReadingTime>2018-10-15T15:32:26.5447519+03:00</ReadingTime>
      <Speed>1.1</Speed>
    </BottomRight>
    <TopLeft>
      <Accuracy>1.1</Accuracy>
      <Altitude>1.1</Altitude>
      <Battery>1.1</Battery>
      <BatteryLevel>1.1</BatteryLevel>
      <Latitude>1.1</Latitude>
      <Longitude>1.1</Longitude>
      <NumberOfSats>1</NumberOfSats>
      <ReadingTime>2018-10-15T15:32:26.5447519+03:00</ReadingTime>
      <Speed>1.1</Speed>
    </TopLeft>
  </CurrentViewPort>
  <DeviceID>1</DeviceID>
  <DeviceTime>2018-10-15T15:32:26.5427521+03:00</DeviceTime>
  <EventCategories xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>7cc571b1-72a9-4e71-81f0-e460d3569bc4</d2p1:guid>
    <d2p1:guid>2aa4429d-03f1-4952-b204-a8298b9effa1</d2p1:guid>
  </EventCategories>
  <EventChannels xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>304b17df-77de-49f9-a095-92a88421b370</d2p1:guid>
    <d2p1:guid>23b331a4-ba79-4393-99ea-45e08143b495</d2p1:guid>
  </EventChannels>
  <EventTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </EventTypes>
  <JsonString>sample string 1</JsonString>
  <LastRefreshTime>2018-10-15T15:32:26.5427521+03:00</LastRefreshTime>
  <MaxDistance>8</MaxDistance>
  <MaxTime>2018-10-15T15:32:26.5437512+03:00</MaxTime>
  <MinTime>2018-10-15T15:32:26.5437512+03:00</MinTime>
  <MonitoringEventCategories xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </MonitoringEventCategories>
  <OrderByTime>true</OrderByTime>
  <PageNumber>5</PageNumber>
  <PageSize>6</PageSize>
  <PointOfInterestTypes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:guid>55722a97-5264-4139-97fe-c1500284a816</d2p1:guid>
    <d2p1:guid>aec3c4b5-8c3b-413f-aea1-894a013b9501</d2p1:guid>
  </PointOfInterestTypes>
  <RequestID>2c052769-a9b8-4b0a-b6b8-f039a06d5973</RequestID>
  <RequestTotal>true</RequestTotal>
  <RequestingDeviceID>3293b671-cd55-4f4a-9260-e1dc8193ec5a</RequestingDeviceID>
  <SearchKey>sample string 10</SearchKey>
  <SessionID>1</SessionID>
</QueryEventsModel>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.