app/controllers/v1/api_controller/pagination.rb
# Compile the page uri for request.
#
# @param uri [URI] the URI request for the client
# @param page [integer] the number of the page requested
# @return [string] the uri for the page **page**
Compile the page uri for request.
Compile the page uri for request .
def compile_page(uri, page)
        query_params = Rack::Utils.parse_query(uri.query)
        query_params['page'] = page.to_s
        uri.query = Rack::Utils.build_query(query_params)
        uri.to_s
      end
def compile_page ( uri , page ) query_params = Rack :: Utils . parse_query ( uri . query ) query_params [ 'page' ] = page . to_s uri . query = Rack :: Utils . build_query ( query_params ) uri . to_s end
Compile the page uri for request.
Compile the page uri for request .
# Get the query params of the URI request # Change the param page for the *page* param # Change the uri query with the new data # Return the URI in String format
the uri for the page **page
the uri for the page ** page
string
uri
the URI request for the client
the URI request for the client
page
the number of the page requested
the number of the page requested