Drones

Get all drones

Retrieves a pageable list of drones. Super Admin may filter by organizationId; other users always receive drones from their own organization. Optional search is for portal autocomplete; omitting it keeps the legacy paginated list (mobile-compatible). Sort supports Spring-style repeated params (e.g. sort=status,DESC&sort=id,DESC). When sorted by a non-unique field such as status, id DESC is appended as a tiebreaker so OFFSET pagination is stable.

get/orgmng/drones

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 drone name or id. When omitted/blank, returns the legacy unfiltered page (mobile-compatible).

Response

Drones retrieved 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.