API/DrfResponseOptions
DrfResponseOptions
src/models/response-options.tsclass
Pre-configured ResponseOptions for the Django REST Framework (DRF) driver
DRF’s PageNumberPagination envelope is { count, next, previous, results }, with no body field naming the current page, per-page, or
last-page. The strategy parses those from the next / previous
URLs, so the corresponding key paths default to empty strings; the
strategy ignores options.currentPage, options.perPage,
options.lastPage, options.from, options.to, options.path,
options.firstPageUrl, and options.lastPageUrl.
Constructor
Section titled “Constructor”new DrfResponseOptions(options: PaginationConfig)| Parameter | Type | Description |
|---|---|---|
options |
PaginationConfig |
— |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
currentPage |
string |
— |
data |
string |
— |
firstPageUrl |
string |
— |
from |
string |
— |
lastPage |
string |
— |
lastPageUrl |
string |
— |
nextPageUrl |
string |
— |
path |
string |
— |
perPage |
string |
— |
prevPageUrl |
string |
— |
to |
string |
— |
total |
string |
— |
