Sha256: 8b6c656ec8f562ef01ed7576c1ee6546cf58b4e1d86fb7ff387f4804e2db131c

Contents?: true

Size: 493 Bytes

Versions: 36

Compression:

Stored size: 493 Bytes

Contents

require_dependency "publish_my_data/application_controller"

module PublishMyData
  class DatasetsController < ApplicationController

    respond_to :html, :ttl, :rdf, :nt, :json, :text

    # /data?page=2&per_page=10
    def index
      @pagination_params = ResourcePaginationParams.from_request(request)
      @datasets = Paginator.new(Dataset.deprecation_last_query_str, @pagination_params, resource_class: PublishMyData::Dataset).paginate
      respond_with(@datasets)
    end

  end
end

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
publish_my_data-1.3.25 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.24 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.23 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.22 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.21 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.20 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.19 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.18 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.17 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.16 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.15 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.14 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.13 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.12 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.11 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.10 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.9 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.8 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.7 app/controllers/publish_my_data/datasets_controller.rb
publish_my_data-1.3.6 app/controllers/publish_my_data/datasets_controller.rb