GET api/Anybody/{index}/{rows}?id={id}
Returns anybody by their Id.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
id can be an ID (e.g. 25) or a Pcode (e.g. ABR00003) |
string |
Required |
index | string |
None. |
|
rows | string |
None. |
Body Parameters
None.
Response Information
Resource Description
AnybodyName | Description | Type | Additional information |
---|---|---|---|
Pcode | string |
None. |
|
MiddleName | string |
None. |
|
FormalTitle | string |
None. |
|
Biography | string |
None. |
|
DateOfBirth | date |
None. |
|
IsDeceased | boolean |
None. |
|
DateDeceased | date |
None. |
|
EgapId | integer |
None. |
|
Title | string |
None. |
|
FirstName | string |
None. |
|
LastName | string |
None. |
|
Honours | string |
None. |
|
Id | integer |
None. |
|
LastUpdatedTimestamp | date |
None. |
Response Formats
application/json, text/json
Sample:
{ "Pcode": "sample string 1", "MiddleName": "sample string 2", "FormalTitle": "sample string 3", "Biography": "sample string 4", "DateOfBirth": "2024-03-28T10:39:15.1539754+00:00", "IsDeceased": true, "DateDeceased": "2024-03-28T10:39:15.1539754+00:00", "EgapId": 5, "Title": "sample string 6", "FirstName": "sample string 7", "LastName": "sample string 8", "Honours": "sample string 9", "Id": 10, "LastUpdatedTimestamp": "2024-03-28T10:39:15.1539754+00:00" }
text/xml
Sample:
<Anybody xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataLayer2.Models"> <Id xmlns="http://schemas.datacontract.org/2004/07/DataLayer2.Core">10</Id> <LastUpdatedTimestamp xmlns="http://schemas.datacontract.org/2004/07/DataLayer2.Core">2024-03-28T10:39:15.1539754+00:00</LastUpdatedTimestamp> <FirstName>sample string 7</FirstName> <Honours>sample string 9</Honours> <LastName>sample string 8</LastName> <Title>sample string 6</Title> <Biography>sample string 4</Biography> <DateDeceased>2024-03-28T10:39:15.1539754+00:00</DateDeceased> <DateOfBirth>2024-03-28T10:39:15.1539754+00:00</DateOfBirth> <EgapId>5</EgapId> <FormalTitle>sample string 3</FormalTitle> <IsDeceased>true</IsDeceased> <MiddleName>sample string 2</MiddleName> <Pcode>sample string 1</Pcode> </Anybody>