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



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

def index
end

#resolve_meObject



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

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

#showObject

GET /api/v1/users/:id



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

def show
end

#updateObject

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



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

def update
  raise "Not implemented"
end