Sha256: 461a8d25a8c98225c818d62c8493e1ad7dff08c82e759c523dcb1a611ff8e046

Contents?: true

Size: 800 Bytes

Versions: 31

Compression:

Stored size: 800 Bytes

Contents

module Locomotive
  module Api
    class MyAccountController < BaseController

      skip_load_and_authorize_resource

      skip_before_filter :require_site, :set_locale, :set_current_thread_variables

      def show
        respond_with(current_locomotive_account)
      end

      protected

      def self.description
        {
          overall: %{Manage the current account (my account)},
          actions: {
            show: {
              description: %{Return the attributes of my account},
              response: Locomotive::AccountPresenter.getters_to_hash,
              example: {
                command: %{curl 'http://mysite.com/locomotive/api/my_account.json'},
                response: %(TODO)
              }
            }
          }
        }
      end

    end

  end
end

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
locomotive_cms-2.5.6 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.5.6.rc2 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.5.6.rc1 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.5.5 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.5.4 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.5.3 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.5.2 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.5.1 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.5.0 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.5.0.rc3 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.5.0.rc2 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.5.0.rc1 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.4.1 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.4.0 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.3.1 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.3.0 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.2.3 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.2.2 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.2.1 app/controllers/locomotive/api/my_account_controller.rb
locomotive_cms-2.2.0 app/controllers/locomotive/api/my_account_controller.rb