Module: Api::V1::Users::ControllerBase

Extended by:
ActiveSupport::Concern
Included in:
Api::V1::UsersController
Defined in:
app/controllers/concerns/api/v1/users/controller_base.rb

Defined Under Namespace

Modules: StrongParameters

Instance Method Summary collapse

Instance Method Details

#indexObject

GET /api/v1/users



57
58
# File 'app/controllers/concerns/api/v1/users/controller_base.rb', line 57

def index
end

#resolve_meObject



60
61
62
63
64
# File 'app/controllers/concerns/api/v1/users/controller_base.rb', line 60

def resolve_me
  if current_user && params[:id]&.downcase == "me"
    params[:id] = current_user.id
  end
end

#showObject

GET /api/v1/users/:id



67
68
# File 'app/controllers/concerns/api/v1/users/controller_base.rb', line 67

def show
end

#updateObject

PUT /api/v1/users/:id TODO: Implement this!



72
73
74
# File 'app/controllers/concerns/api/v1/users/controller_base.rb', line 72

def update
  raise "Not implemented"
end