code: def add_pagination_meta(self, params, meta):
          
          meta['page_size'] = params['page_size']
          meta['page'] = params['page']
  
          meta['prev'] = "page={0}&page_size={1}".format(
              params['page'] - 1, params['page_size']
          ) if meta['page'] > 0 else None
  
          meta['next'] = "page={0}&page_size={1}".format(
              params['page'] + 1, params['page_size']
          ) if meta.get('has_more', True) else None
docs: Extend default meta dictionary value with pagination hints.
  
          Note:
              This method handler attaches values to ``meta`` dictionary without
              changing it's reference. This means that you should never replace
              ``meta`` dictionary with any other dict instance but simply modify
              its content.
  
          Args:
              params (dict): dictionary of decoded parameter values
              meta (dict): dictionary of meta values attached to response