Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Children Display
sorttitle

Anchor

...

PaginationQueryStringParameters
PaginationQueryStringParameters

...

Pagination query string parameters

To allow paging of responses that might return large amounts of data (typically "list" requests), requests will accept paging parameters as shown below

NameTypeRequiredDefaultDescription
fromlongOptional0

The offset in to the results list from which results should be returned

sizelongOptional25/unlimited

The (maximum) number of items to be returned in the results list

Note: The results list is only limited if the size parameter is set (even to 0). If size is not set, Aspire will assume you are trying to retrieve all items. TODO: the defaults not implemented

Where paging parameters are applied, Aspire will add a "count" to the returned object to inform the total number of objects that exists (the fields being from, size, totalItems) TODO: not implemented


Anchor
SortingQueryStringParameters
SortingQueryStringParameters
Sorting query string parameters TODO: not implemented

NameTypeRequiredDescription
sortBystringOptionalField by which results are sorted
sortModestringOptional

Sort mode

  • "asc" for ascending sort,
  • "desc" for descending sort

Responses

Aspire's API will return both an HTTP response code and a Json body indicating success or failure of all calls. The following status codes are used

...