Class: NewStoreApi::PlatformStatusController
- Inherits:
-
BaseController
- Object
- BaseController
- NewStoreApi::PlatformStatusController
- Defined in:
- lib/new_store_api/controllers/platform_status_controller.rb
Overview
PlatformStatusController
Constant Summary
Constants inherited from BaseController
Instance Attribute Summary
Attributes inherited from BaseController
Instance Method Summary collapse
-
#show_platform_status ⇒ PlatformStatusResponse
🚧 BETA: This endpoint is in beta and may change.
Methods inherited from BaseController
#initialize, #new_parameter, #new_request_builder, #new_response_handler, user_agent
Constructor Details
This class inherits a constructor from NewStoreApi::BaseController
Instance Method Details
#show_platform_status ⇒ PlatformStatusResponse
🚧 BETA: This endpoint is in beta and may change.
See API Lifecycle Documentation for details.19 20 21 22 23 24 25 26 27 28 29 30
# File 'lib/new_store_api/controllers/platform_status_controller.rb', line 19 def show_platform_status @api_call .request(new_request_builder(HttpMethodEnum::GET, '/retail-org/status', Server::API) .header_param(new_parameter('application/json', key: 'accept')) .auth(Single.new('oauth'))) .response(new_response_handler .deserializer(APIHelper.method(:custom_type_deserializer)) .deserialize_into(PlatformStatusResponse.method(:from_hash))) .execute end