Skip to content
qubeejs/angular
3.8/API/JsonServerResponseOptions

JsonServerResponseOptions

ArchivedThese are the docs for ng-qubee 3.8. Read the 4.0 docs for @qubeejs/angular.

Defined in: src/lib/models/response-options.ts:206

Pre-configured ResponseOptions for the json-server driver

The json-server v1 envelope is { first, prev, next, last, pages, items, data }, where first/prev/next/last are page numbers, not URLs — the strategy reads prev/next directly for position derivation and leaves the URL slots undefined, so the navigation-URL paths default to empty strings. total maps to items and lastPage to pages; currentPage and perPage have no body field and are derived.

new JsonServerResponseOptions(options): JsonServerResponseOptions

Defined in: src/lib/models/response-options.ts:207

IPaginationConfig

JsonServerResponseOptions

ResponseOptions.constructor

readonly currentPage: string

Defined in: src/lib/models/response-options.ts:18

ResponseOptions.currentPage


readonly data: string

Defined in: src/lib/models/response-options.ts:19

ResponseOptions.data


readonly firstPageUrl: string

Defined in: src/lib/models/response-options.ts:20

ResponseOptions.firstPageUrl


readonly from: string

Defined in: src/lib/models/response-options.ts:21

ResponseOptions.from


readonly lastPage: string

Defined in: src/lib/models/response-options.ts:22

ResponseOptions.lastPage


readonly lastPageUrl: string

Defined in: src/lib/models/response-options.ts:23

ResponseOptions.lastPageUrl


readonly nextPageUrl: string

Defined in: src/lib/models/response-options.ts:24

ResponseOptions.nextPageUrl


readonly path: string

Defined in: src/lib/models/response-options.ts:25

ResponseOptions.path


readonly perPage: string

Defined in: src/lib/models/response-options.ts:26

ResponseOptions.perPage


readonly prevPageUrl: string

Defined in: src/lib/models/response-options.ts:27

ResponseOptions.prevPageUrl


readonly to: string

Defined in: src/lib/models/response-options.ts:28

ResponseOptions.to


readonly total: string

Defined in: src/lib/models/response-options.ts:29

ResponseOptions.total