pagination - custom 으로 만들기

Using pagination in the REST API - GitHub Docs

{
   "data":[
      {
         "meterName":"x4lvxo7gqraicvmscalenasa - Standard IO - Table/ Queue (GB)",
         "meterCategory":"Storage",
         "meterSubCategory":"Locally Redundant",
         "meterRegion":"",
         "unit":"GB",
         "resourceGroup":"RGSOFIAVMTEST",
         "totalQuantity":0.0004720000,
         "resourceName":"x4lvxo7gqraicvmscalenasa"
      }
   ],
   "paging":{
      "page":2,
      "size":25,
      "offset":25,
      "totalCount":26,
      "pageCount":2
   },
   "links":{
      "self":{
         "uri":"http://<host_name>/api/Subscriptions/{subscription_id}/azureusagerecords?startDate=2016-01-01&endDate=2016-12-30&page=2&size=25",
         "method":"GET",
         "headers":{
            "x-Api-Version":"2"
         }
      },
      "first":{
         "uri":"http://<host_name>/api/Subscriptions/{subscription_id}/azureusagerecords?startDate=2016-01-01&endDate=2016-12-30&page=1&size=25",
         "method":"GET",
         "headers":{
            "x-Api-Version":"2"
         }
      },
      "last":{
         "uri":"http://<host_name>/api/Subscriptions/{subscription_id}/azureusagerecords?startDate=2016-01-01&endDate=2016-12-30&page=2&size=25",
         "method":"GET",
         "headers":{
            "x-Api-Version":"2"
         }
      },
      "next":null,
      "previous":{
         "uri":"http://<host_name>/api/Subscriptions/{subscription_id}/azureusagerecords?startDate=2016-01-01&endDate=2016-12-30&page=1&size=25",
         "method":"GET",
         "headers":{
            "x-Api-Version":"2"
         }
      }
   }
}
"pagination": {
   "total_records": 100,
   "current_page": 1,
   "total_pages": 10,
   "next_page": 2,
   "prev_page": null
 }

피드백