GET api/v{version}/player/fuzzyfind?name={name}&dateOfBirth={dateOfBirth}&nationality={nationality}&ratio={ratio}

Find a player by name

Request Information

URI Parameters

NameDescriptionTypeAdditional information
name

The name of the player. This doesn't have to be an exact match

string

Required

dateOfBirth

Optinal date of birth: dd-mm-yyyy

string

Default value is

nationality

OPtional the nationality (name,code)

string

Default value is

ratio

The fuzzy mach factor (default 90)

integer

Default value is 90

version

string

None.

Body Parameters

None.

Response Information

Resource Description

The list of found players. Each player has a ratio about the match

Collection of PlayerLookupViewModel
NameDescriptionTypeAdditional information
Name

string

None.

Id

integer

None.

Key

integer

None.

MemberId

string

None.

DateOfBirth

date

None.

Nationality

string

None.

Email

string

None.

Ratio

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Name": "sample string 1",
    "Id": 2,
    "Key": 3,
    "MemberId": "sample string 4",
    "DateOfBirth": "2022-09-29T14:01:45.9264122+02:00",
    "Nationality": "sample string 5",
    "Email": "sample string 6",
    "Ratio": 1
  },
  {
    "Name": "sample string 1",
    "Id": 2,
    "Key": 3,
    "MemberId": "sample string 4",
    "DateOfBirth": "2022-09-29T14:01:45.9264122+02:00",
    "Nationality": "sample string 5",
    "Email": "sample string 6",
    "Ratio": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfPlayerLookupViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DartStat.Domain.Models">
  <PlayerLookupViewModel>
    <DateOfBirth>2022-09-29T14:01:45.9264122+02:00</DateOfBirth>
    <Id>2</Id>
    <Key>3</Key>
    <MemberId>sample string 4</MemberId>
    <Name>sample string 1</Name>
    <Nationality>sample string 5</Nationality>
  </PlayerLookupViewModel>
  <PlayerLookupViewModel>
    <DateOfBirth>2022-09-29T14:01:45.9264122+02:00</DateOfBirth>
    <Id>2</Id>
    <Key>3</Key>
    <MemberId>sample string 4</MemberId>
    <Name>sample string 1</Name>
    <Nationality>sample string 5</Nationality>
  </PlayerLookupViewModel>
</ArrayOfPlayerLookupViewModel>