Sha256: 48c97856683f9a5f1248168b84775412ae5ae6de9892a832b0ef5543454c6251

Contents?: true

Size: 454 Bytes

Versions: 14

Compression:

Stored size: 454 Bytes

Contents

# frozen_string_literal: true

require_relative 'application_api_client'

# An usage example of the `my_api_client`.
# See also: my_api/app/controllers/pagination_controller.rb
class MyPaginationApiClient < ApplicationApiClient
  # GET pagination?page=1
  def pagination
    pget 'pagination', paging: '$.links.next', headers: headers, query: { page: 1 }
  end

  private

  def headers
    { 'Content-Type': 'application/json;charset=UTF-8' }
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
my_api_client-0.27.0 example/api_clients/my_pagination_api_client.rb
my_api_client-0.26.0 example/api_clients/my_pagination_api_client.rb
my_api_client-0.25.0 example/api_clients/my_pagination_api_client.rb
my_api_client-0.24.0 example/api_clients/my_pagination_api_client.rb
my_api_client-0.23.0 example/api_clients/my_pagination_api_client.rb
my_api_client-0.22.0 example/api_clients/my_pagination_api_client.rb
my_api_client-0.21.0 example/api_clients/my_pagination_api_client.rb
my_api_client-0.20.0 example/api_clients/my_pagination_api_client.rb
my_api_client-0.19.0 example/api_clients/my_pagination_api_client.rb
my_api_client-0.18.0 example/api_clients/my_pagination_api_client.rb
my_api_client-0.17.0 example/api_clients/my_pagination_api_client.rb
my_api_client-0.16.1 example/api_clients/my_pagination_api_client.rb
my_api_client-0.16.0 example/api_clients/my_pagination_api_client.rb
my_api_client-0.15.0 example/api_clients/my_pagination_api_client.rb