Class: Api::V1::MyCarrierTmsMessagesController

Inherits:
BaseController
  • Object
show all
Includes:
ActionController::HttpAuthentication::Basic::ControllerMethods
Defined in:
app/controllers/api/v1/my_carrier_tms_messages_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#catalog_for_request, #error!, #locale_for_request, #logger, #render_bad_request_response, #render_internal_server_error, #render_not_found_response, #render_result, #render_unprocessable_entity_response, #set_locale, #store_for_request, #underscore_params

Instance Method Details

#shipmentsObject



29
30
31
32
33
34
# File 'app/controllers/api/v1/my_carrier_tms_messages_controller.rb', line 29

def shipments
  logger.info "Api::V1::MyCarrierTmsMessagesController#shipments POST, params: #{params}"
  render json: { status: 'OK' }, status: :ok
rescue StandardError => e
  ErrorReporting.error("MyCarrierTmsMessagesController.shipments error: #{e}")
end

#testObject

API_ACCOUNT_LOGIN_WHITELIST = ['mft_gateway']



8
9
10
11
12
13
# File 'app/controllers/api/v1/my_carrier_tms_messages_controller.rb', line 8

def test
  logger.info "Api::V1::MyCarrierTmsMessagesController#test GET, params: #{params}"
  render json: { status: 'OK' }, status: :ok
rescue StandardError => e
  ErrorReporting.error("MyCarrierTmsMessagesController.test error: #{e}")
end

#test_createObject



15
16
17
18
19
20
# File 'app/controllers/api/v1/my_carrier_tms_messages_controller.rb', line 15

def test_create
  logger.info "Api::V1::MyCarrierTmsMessagesController#test_create POST, params: #{params}"
  render json: { status: 'OK' }, status: :ok
rescue StandardError => e
  ErrorReporting.error("MyCarrierTmsMessagesController.test_create error: #{e}")
end

#test_updateObject



22
23
24
25
26
27
# File 'app/controllers/api/v1/my_carrier_tms_messages_controller.rb', line 22

def test_update
  logger.info "Api::V1::MyCarrierTmsMessagesController#test_update PUT, params: #{params}"
  render json: { status: 'OK' }, status: :ok
rescue StandardError => e
  ErrorReporting.error("MyCarrierTmsMessagesController.test_update error: #{e}")
end

#update_shipmentsObject



36
37
38
39
40
41
# File 'app/controllers/api/v1/my_carrier_tms_messages_controller.rb', line 36

def update_shipments
  logger.info "Api::V1::MyCarrierTmsMessagesController#update_shipments PUT, params: #{params}"
  render json: { status: 'OK' }, status: :ok
rescue StandardError => e
  ErrorReporting.error("MyCarrierTmsMessagesController.update_shipments error: #{e}")
end