Sha256: 886befe06400b448ed41c131df7a9690ffbba1dd68d7344cbcb9e4f95bd675de

Contents?: true

Size: 667 Bytes

Versions: 4

Compression:

Stored size: 667 Bytes

Contents

module MnoEnterprise
  class Jpi::V1::Admin::AppQuestionsController < Jpi::V1::Admin::BaseResourceController
    # GET /mnoe/jpi/v1/admin/app_questions
    def index
      @app_reviews = MnoEnterprise::AppQuestion
      @app_reviews = @app_reviews.limit(params[:limit]) if params[:limit]
      @app_reviews = @app_reviews.skip(params[:offset]) if params[:offset]
      @app_reviews = @app_reviews.order_by(params[:order_by]) if params[:order_by]
      @app_reviews = @app_reviews.where(params[:where]) if params[:where]
      @app_reviews = @app_reviews.all.fetch
      response.headers['X-Total-Count'] = @app_reviews.metadata[:pagination][:count]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
mno-enterprise-api-3.4.0 app/controllers/mno_enterprise/jpi/v1/admin/app_questions_controller.rb
mno-enterprise-api-3.3.3 app/controllers/mno_enterprise/jpi/v1/admin/app_questions_controller.rb
mno-enterprise-api-3.3.2 app/controllers/mno_enterprise/jpi/v1/admin/app_questions_controller.rb
mno-enterprise-api-3.3.1 app/controllers/mno_enterprise/jpi/v1/admin/app_questions_controller.rb