rest api pagination example php

Solutions on MaxInterview for rest api pagination example php by the best coders in the world

showing results for - "rest api pagination example php"
Juan Esteban
10 Aug 2018
1{
2    "_links": {
3        "self": {
4            "href": "http://example.org/api/user?page=3"
5        },
6        "first": {
7            "href": "http://example.org/api/user"
8        },
9        "prev": {
10            "href": "http://example.org/api/user?page=2"
11        },
12        "next": {
13            "href": "http://example.org/api/user?page=4"
14        },
15        "last": {
16            "href": "http://example.org/api/user?page=133"
17        }
18    }
19    "count": 3,
20    "total": 498,
21    "_embedded": {
22        "users": [
23            {
24                "_links": {
25                    "self": {
26                        "href": "http://example.org/api/user/mwop"
27                    }
28                },
29                "id": "mwop",
30                "name": "Matthew Weier O'Phinney"
31            },
32            {
33                "_links": {
34                    "self": {
35                        "href": "http://example.org/api/user/mac_nibblet"
36                    }
37                },
38                "id": "mac_nibblet",
39                "name": "Antoine Hedgecock"
40            },
41            {
42                "_links": {
43                    "self": {
44                        "href": "http://example.org/api/user/spiffyjr"
45                    }
46                },
47                "id": "spiffyjr",
48                "name": "Kyle Spraggs"
49            }
50        ]
51    }
52}