XF 2.2 Resource categories page API

Slion

Active member
How do I specify the page I want with this GET resource-categories/{id}/resources API:
As it is it just gives me the first page.
 
Last edited:
Solution
My bad, it looks like it actually returns all resources, but the pagination information is rather confusing:
Code:
"pagination": {
    "current_page": 1,
    "last_page": 2,
    "per_page": 20,
    "shown": 22,
    "total": 22
 }

The current_page seems to imply you are only getting one page. When in fact you are getting all resources it seems. As implied by the shown and total information.
My bad, it looks like it actually returns all resources, but the pagination information is rather confusing:
Code:
"pagination": {
    "current_page": 1,
    "last_page": 2,
    "per_page": 20,
    "shown": 22,
    "total": 22
 }

The current_page seems to imply you are only getting one page. When in fact you are getting all resources it seems. As implied by the shown and total information.
 
Last edited:
Solution
Back
Top Bottom