Class: Bitsy::V1::PaymentDepotsController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- Bitsy::V1::PaymentDepotsController
- Defined in:
- app/controllers/bitsy/v1/payment_depots_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
15 16 17 18 19 20 |
# File 'app/controllers/bitsy/v1/payment_depots_controller.rb', line 15 def create @payment_depot = CreatePaymentDepot. execute(params: payment_depot_params). payment_depot render json: @payment_depot end |
#index ⇒ Object
5 6 7 8 |
# File 'app/controllers/bitsy/v1/payment_depots_controller.rb', line 5 def index @payment_depots = PaymentDepot.all render json: @payment_depots end |
#show ⇒ Object
10 11 12 13 |
# File 'app/controllers/bitsy/v1/payment_depots_controller.rb', line 10 def show @payment_depot = PaymentDepot.find(params[:id]) render json: @payment_depot end |