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