GET api/v{version}/last?date={date}&removeduplicates={removeduplicates}&filter={filter}

Get the last changes to the database.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
date

Get all the changes since.

date

Required

removeduplicates

Remove changes that are double. For example two updates of the same player.

boolean

Default value is False

filter

Filter the messages. Supports: HeartBeat, Organisation, Competition, Season, Player, Venue.

string

None.

version

string

None.

Body Parameters

None.

Response Information

Resource Description

Collection of MessageViewModel
NameDescriptionTypeAdditional information
Id

integer

None.

User

string

None.

Entity

string

None.

Modification

string

None.

TimeStamp

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "User": "sample string 2",
    "Entity": "sample string 3",
    "Modification": "sample string 4",
    "TimeStamp": "sample string 5"
  },
  {
    "Id": 1,
    "User": "sample string 2",
    "Entity": "sample string 3",
    "Modification": "sample string 4",
    "TimeStamp": "sample string 5"
  }
]

application/xml, text/xml

Sample:
<ArrayOfMessageViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Domain.Models">
  <MessageViewModel>
    <Entity>sample string 3</Entity>
    <Id>1</Id>
    <Modification>sample string 4</Modification>
    <TimeStamp>sample string 5</TimeStamp>
    <User>sample string 2</User>
  </MessageViewModel>
  <MessageViewModel>
    <Entity>sample string 3</Entity>
    <Id>1</Id>
    <Modification>sample string 4</Modification>
    <TimeStamp>sample string 5</TimeStamp>
    <User>sample string 2</User>
  </MessageViewModel>
</ArrayOfMessageViewModel>