Projekt

Allgemein

Profil

Aktionen

GX-Bug #69669

geschlossen

Endpoints with pagination don't contain a "total pages" attribute in its responses

Von Marvin Muxfeld vor etwa 2 Jahren hinzugefügt. Vor etwa 2 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Dringend
Zugewiesen an:
Tobias Schindler
Kategorie:
REST-API
Zielversion:
% erledigt:

0%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
4.5.2.2
Release Notes Langtext:

Api v3 endpoints enthalten nun eine "totalPages" angabe im _meta objekt


Beschreibung

"_meta" attribute should also contain a "totalPages" attribute and should look like this

{
   "_meta": {
      "page": 5,
      "perPage": 2,
      "totalItems": 9,
      "totalPages": 4,
      "links": {
         "firstPage": "http://gx.feature/api.php/v3/products/1/variants?per-page=2&page=1",
         "previousPage": "http://gx.feature/api.php/v3/products/1/variants?per-page=2&page=4"
      }
}

Aktionen

Auch abrufbar als: Atom PDF