GET api/v1/persons/gliderobserverpilots/listitems/{onlyClubRelatedPilots}

Get the persons ordered by lastname. If all persons will be queried but the user has no system admin rights only the main data of each person is be returned (no email, no phone numbers, etc.)

Request Information

URI Parameters

NameDescriptionTypeAdditional information
onlyClubRelatedPilots

if set to true only club related pilots will be returned.

boolean

Required

Body Parameters

None.

Response Information

Resource Description

Collection of PersonListItem
NameDescriptionTypeAdditional information
PersonId

globally unique identifier

None.

Firstname

string

None.

Lastname

string

None.

City

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "PersonId": "a166ce11-7c1d-4bce-98c7-51de09bdb31a",
    "Firstname": "sample string 2",
    "Lastname": "sample string 3",
    "City": "sample string 4"
  },
  {
    "PersonId": "a166ce11-7c1d-4bce-98c7-51de09bdb31a",
    "Firstname": "sample string 2",
    "Lastname": "sample string 3",
    "City": "sample string 4"
  }
]

text/html

Sample:
[{"PersonId":"a166ce11-7c1d-4bce-98c7-51de09bdb31a","Firstname":"sample string 2","Lastname":"sample string 3","City":"sample string 4"},{"PersonId":"a166ce11-7c1d-4bce-98c7-51de09bdb31a","Firstname":"sample string 2","Lastname":"sample string 3","City":"sample string 4"}]

application/xml, text/xml

Sample:
<ArrayOfPersonListItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Person">
  <PersonListItem>
    <City>sample string 4</City>
    <Firstname>sample string 2</Firstname>
    <Lastname>sample string 3</Lastname>
    <PersonId>a166ce11-7c1d-4bce-98c7-51de09bdb31a</PersonId>
  </PersonListItem>
  <PersonListItem>
    <City>sample string 4</City>
    <Firstname>sample string 2</Firstname>
    <Lastname>sample string 3</Lastname>
    <PersonId>a166ce11-7c1d-4bce-98c7-51de09bdb31a</PersonId>
  </PersonListItem>
</ArrayOfPersonListItem>