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
-
#index ⇒ Object
GET /api/v1/users.
- #resolve_me ⇒ Object
-
#show ⇒ Object
GET /api/v1/users/:id.
-
#update ⇒ Object
PUT /api/v1/users/:id TODO: Implement this!.
Instance Method Details
#index ⇒ Object
GET /api/v1/users
56 57 |
# File 'app/controllers/concerns/api/v1/users/controller_base.rb', line 56 def index end |
#resolve_me ⇒ Object
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 |
#show ⇒ Object
GET /api/v1/users/:id
66 67 |
# File 'app/controllers/concerns/api/v1/users/controller_base.rb', line 66 def show end |
#update ⇒ Object
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 |