Class: Api::Vendor::V1::Klook::SuppliersController

Inherits:
BaseController show all
Defined in:
app/controllers/api/vendor/v1/klook/suppliers_controller.rb

Constant Summary

Constants inherited from BaseController

BaseController::CACHE_NAMESPACE

Instance Attribute Summary

Attributes inherited from BaseController

#vendor

Instance Method Summary collapse

Methods inherited from BaseController

#authentication

Methods included from ResponseCacheConcern

#my_response_cache

Methods included from EncryptableHelper

#decrypt, #encrypt, #generate_signature

Methods inherited from ApplicationController

#after_sign_in_path_for, #after_sign_out_path_for, #default_url_options, #identity_cache_memoization, #render_not_found, #routing_error, search_params_key=

Methods included from LogrageCustomLogger

#append_info_to_payload

Methods included from ControllerHelpers

#check_boolean_param, #get_banners, #inventory_params, #reservation_params

Instance Method Details

#indexObject



3
4
5
6
7
8
9
# File 'app/controllers/api/vendor/v1/klook/suppliers_controller.rb', line 3

def index
  supplier = Channel.find_by(channel_id: 0)
  cache_key = "#{CACHE_NAMESPACE}:#{self.class}:#{__method__}"
  my_response_cache cache_key, :json, public: true do
    Api::Vendor::V1::Klook::SupplierSerializer.new(supplier)
  end
end