Pilot

Get all pilots

Returns a paginated list of pilots with user info. Super Admin may filter by organizationId; other users always receive pilots from their own organization. Optional search is for portal autocomplete; omitting it keeps the legacy paginated list (mobile-compatible).

get/orgmng/pilots

Request

  • Base URL
    http://localhost:8486
  • Auth
    API key in header x-auth-token

Query parameters

pageinteger
sizeinteger
sortstring

Sort criteria. Prefer Spring-style repeated params, e.g. sort=status,DESC&sort=id,DESC. Each value is field (default DESC) or field,DIR. Repeated sort params are joined by the binder; a single value such as status,DESC,id,DESC is also accepted. Invalid formats fall back to id,DESC.

organizationIdinteger

When the caller is Super Admin, limits results to this organization; ignored for self-org readers.

searchstring

Optional. Filters by pilot name, registration number, or id. When omitted/blank, returns the legacy unfiltered page (mobile-compatible).

Response

List of pilots returned successfully

pageinteger

Current page number (0-based)

sizeinteger

Number of items per page

totalElementsinteger

Total number of elements across all pages

totalPagesinteger

Total number of pages

firstboolean

Whether this is the first page

lastboolean

Whether this is the last page

emptyboolean

Whether the page is empty

Example response

{
  "size": 10,
  "totalElements": 25,
  "totalPages": 3,
  "first": true
}

Changes

No recorded changes to this operation across all 1 revision of this API.