|
3 | 3 | <h1>Drupal JSON-API Params</h1> |
4 | 4 | </a> |
5 | 5 | <p><img src="https://img.shields.io/github/actions/workflow/status/d34dman/drupal-jsonapi-params/typedoc.yml?style=flat-square&label=Build" alt="GitHub pages build status"> |
6 | | -<img src="https://img.shields.io/codecov/c/github/d34dman/drupal-jsonapi-params/main?style=flat-square" alt="codecov"> |
| 6 | +<img src="https://img.shields.io/codecov/c/github/d34dman/drupal-jsonapi-params?style=flat-square&logo=codecov" alt="Codecov"> |
7 | 7 | <a href="https://www.npmjs.com/package/drupal-jsonapi-params"><img src="https://img.shields.io/npm/v/drupal-jsonapi-params?style=flat-square" alt="npm"></a> |
8 | | -<img src="https://img.shields.io/bundlephobia/minzip/drupal-jsonapi-params?style=flat-square" alt="npm bundle size"> |
| 8 | +<img src="https://img.shields.io/bundlejs/size/drupal-jsonapi-params?style=flat-square" alt="npm package minimized gzipped size"> |
9 | 9 | <img src="https://img.shields.io/npm/types/drupal-jsonapi-params?style=flat-square" alt="npm type definitions"> |
10 | | -<a href="http://npmjs.com/package/drupal-jsonapi-params"><img src="https://img.shields.io/npm/dt/drupal-jsonapi-params.svg?maxAge=2592000&style=flat-square" alt="npm downloads"></a> |
11 | | -<a href="https://snyk.io/test/npm/drupal-jsonapi-params"><img src="https://img.shields.io/snyk/vulnerabilities/github/d34dman/drupal-jsonapi-params?style=flat-square" alt="Known Vulnerabilities"></a></p> |
| 10 | +<a href="http://npmjs.com/package/drupal-jsonapi-params"><img src="https://img.shields.io/npm/dt/drupal-jsonapi-params.svg?maxAge=2592000&style=flat-square" alt="npm downloads"></a></p> |
12 | 11 | <p>The <a href="https://jsonapi.org/">JSON:API</a> is part of <a href="https://www.drupal.org/">Drupal</a> Core.</p> |
13 | 12 | <p>The JSON:API specifications defines standard query parameters to be used to do filtering, sorting, restricting fields that are returned, pagination and so on.</p> |
14 | 13 | <p>This module provides a helper Class to create the required query. While doing so, it also tries to optimise the query by using the short form, whenever possible.</p> |
@@ -231,6 +230,10 @@ <h3>addPageOffset</h3> |
231 | 230 | </tr> |
232 | 231 | </tbody></table> |
233 | 232 | <p><a href="https://www.drupal.org/docs/8/core/modules/jsonapi-module/pagination">Read more about Pagination in Drupal.org Documentation</a></p> |
| 233 | +<p><strong>NOTE</strong></p> |
| 234 | +<p>JSON:API response have pagination information build into the response. Based on the results in the response, you can get "previous" and "next" links which can be used |
| 235 | +to get further items when results overflows into multiple pages.</p> |
| 236 | +<p>If you are looking for a practical guide, you can check out the example in this issue on GitHub <a href="https://github.com/d34dman/drupal-jsonapi-params/issues/40">https://github.com/d34dman/drupal-jsonapi-params/issues/40</a></p> |
234 | 237 |
|
235 | 238 | <a href="#addfields" id="addfields" style="color: inherit; text-decoration: none;"> |
236 | 239 | <h3>addFields</h3> |
|
0 commit comments