September 2017
Intermediate to advanced
244 pages
6h 44m
English
{data:[ { id:1, title:"Awesome Post", content:"This is an awesome post", link: "/posts/1" }, { id:2, title:"Amazing one", content:"This is an amazing post", link: "/posts/2" } ],total_count: 2,limit:10,pagination: { first_page: "/posts?page=1", last_page: "/posts?page=1", page=1 }}
Here, data is an array of objects as there are multiple records returning. Other than total_count, there is a pagination object as well, and right now it shows the first and last pages because total_count for records is only 2. So, there is no next or previous page. Otherwise, we should also have to show the next and previous in pagination.
As you can see, there are links ...
Read now
Unlock full access