Complete the code to set the limit parameter for pagination.
GET /items?limit=[1]The limit parameter controls how many items are returned per page. Setting it to 10 means the API returns 10 items.
Complete the code to set the offset parameter for pagination.
GET /items?limit=10&offset=[1]
The offset parameter tells the API to skip the first 20 items, so the next page starts from item 21.
Fix the error in the query string to correctly paginate with limit and offset.
GET /items?limit=10&offset=[1]
The offset must be a positive number. Using 30 skips the first 30 items correctly. Strings or negative numbers cause errors.
Fill both blanks to create a query string that requests 15 items starting from the 45th item.
GET /items?limit=[1]&offset=[2]
Setting limit=15 requests 15 items per page. Setting offset=45 skips the first 45 items, so results start from item 46.
Fill all three blanks to create a query string that requests 25 items starting from the 50th item, sorted by date.
GET /items?limit=[1]&offset=[2]&sort=[3]
Limit 25 means 25 items per page. Offset 50 skips the first 50 items. Sort by date orders the results by date.