Sha256: 2ba8098805fdc6c8df61d8b85ba928122a98d274d61f322773b61a720ce80060

Contents?: true

Size: 1 KB

Versions: 23

Compression:

Stored size: 1 KB

Contents

module MnoEnterprise
  class Jpi::V1::IndustryBundleController < ApplicationController

    # GET /mnoe/jpi/v1/industry_bundles/app_descriptions/pr.json
    # def app_descriptions
    #   @bundle = IndustryBundle.find_by_name(params[:bundle_name])
    #   if @bundle
    #     app_descriptions_array = @bundle.apps.map do |app|
    #       [app.name, { 'pictures' => app.pictures.map { |picture| {'thumb' => picture.thumb.to_s, 'url' => picture.url.to_s } } }.merge(
    #       @bundle.app_descriptions[app.name]) ]
    #     end
    #     @app_descriptions = Hash[*(app_descriptions_array.flatten)]
    #     @bundle_description = { appNames: @bundle.apps.map { |app| app.name }, appDescriptions: @app_descriptions }
    #     respond_to do |format|
    #       format.json { render json: @bundle_description, status: :ok }
    #     end
    #   else
    #     respond_to do |format|
    #       format.json { render json: "That bundle does not exist", status: :bad_request }
    #     end
    #   end
    # end

  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
mno-enterprise-api-3.1.4 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-3.0.7 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-2.0.9 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-3.1.3 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-3.0.6 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-2.0.8 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-3.1.2 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-3.0.5 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-2.0.7 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-2.0.6 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-2.0.5 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-3.1.1 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-3.0.4 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-2.0.4 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-3.1.0 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-3.0.3 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-2.0.3 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-3.0.2 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-2.0.2 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb
mno-enterprise-api-3.0.1 app/controllers/mno_enterprise/jpi/v1/industry_bundle_controller.rb