GET api/Relations?personId={personId}

Gets the specified person's relations.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
personId

The person identifier.

integer

Required

Body Parameters

None.

Response Information

Resource Description

A list of

Collection of RelationsData
NameDescriptionTypeAdditional information
Id

Gets or sets the identifier.

integer

None.

Person

Gets or sets the person who has a relation.

PersonKeyData

None.

Relation

Gets or sets the relation type.

RelationType

None.

Relative

Gets or sets the relative.

PersonKeyData

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1,
    "Person": {
      "FirstName": "sample string 1",
      "Initial": "sample string 2",
      "PersonId": 3,
      "SurName": "sample string 4",
      "Links": []
    },
    "Relation": {
      "Id": 1,
      "Name": "sample string 2"
    },
    "Relative": {
      "FirstName": "sample string 1",
      "Initial": "sample string 2",
      "PersonId": 3,
      "SurName": "sample string 4",
      "Links": []
    }
  },
  {
    "Id": 1,
    "Person": {
      "FirstName": "sample string 1",
      "Initial": "sample string 2",
      "PersonId": 3,
      "SurName": "sample string 4",
      "Links": []
    },
    "Relation": {
      "Id": 1,
      "Name": "sample string 2"
    },
    "Relative": {
      "FirstName": "sample string 1",
      "Initial": "sample string 2",
      "PersonId": 3,
      "SurName": "sample string 4",
      "Links": []
    }
  }
]

application/xml, text/xml

Sample:
<ArrayOfRelationsData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://worldcurling.org/statistics/data/relation">
  <RelationsData>
    <Id>1</Id>
    <Person xmlns:d3p1="http://worldcurling.org/statistics/data/personkeydata">
      <Links xmlns:d4p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
      <d3p1:FirstName>sample string 1</d3p1:FirstName>
      <d3p1:Initial>sample string 2</d3p1:Initial>
      <d3p1:PersonId>3</d3p1:PersonId>
      <d3p1:SurName>sample string 4</d3p1:SurName>
    </Person>
    <Relation xmlns:d3p1="http://worldcurling.org/statistics/data/relationtype">
      <d3p1:Id>1</d3p1:Id>
      <d3p1:Name>sample string 2</d3p1:Name>
    </Relation>
    <Relative xmlns:d3p1="http://worldcurling.org/statistics/data/personkeydata">
      <Links xmlns:d4p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
      <d3p1:FirstName>sample string 1</d3p1:FirstName>
      <d3p1:Initial>sample string 2</d3p1:Initial>
      <d3p1:PersonId>3</d3p1:PersonId>
      <d3p1:SurName>sample string 4</d3p1:SurName>
    </Relative>
  </RelationsData>
  <RelationsData>
    <Id>1</Id>
    <Person xmlns:d3p1="http://worldcurling.org/statistics/data/personkeydata">
      <Links xmlns:d4p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
      <d3p1:FirstName>sample string 1</d3p1:FirstName>
      <d3p1:Initial>sample string 2</d3p1:Initial>
      <d3p1:PersonId>3</d3p1:PersonId>
      <d3p1:SurName>sample string 4</d3p1:SurName>
    </Person>
    <Relation xmlns:d3p1="http://worldcurling.org/statistics/data/relationtype">
      <d3p1:Id>1</d3p1:Id>
      <d3p1:Name>sample string 2</d3p1:Name>
    </Relation>
    <Relative xmlns:d3p1="http://worldcurling.org/statistics/data/personkeydata">
      <Links xmlns:d4p1="http://worldcurling.org/statistics/api/entitylink" xmlns="http://worldcurling.org/statistics/api/Resource" />
      <d3p1:FirstName>sample string 1</d3p1:FirstName>
      <d3p1:Initial>sample string 2</d3p1:Initial>
      <d3p1:PersonId>3</d3p1:PersonId>
      <d3p1:SurName>sample string 4</d3p1:SurName>
    </Relative>
  </RelationsData>
</ArrayOfRelationsData>