Class: UntitledApi::AboutController

Inherits:
BaseController show all
Defined in:
lib/untitled_api/controllers/about_controller.rb

Overview

AboutController

Constant Summary

Constants inherited from BaseController

BaseController::GLOBAL_ERRORS

Instance Attribute Summary

Attributes inherited from BaseController

#config, #http_call_back

Instance Method Summary collapse

Methods inherited from BaseController

#initialize, #new_api_call_builder, #new_parameter, #new_request_builder, #new_response_handler, user_agent

Constructor Details

This class inherits a constructor from UntitledApi::BaseController

Instance Method Details

#about_retrieveAboutResponse1

TODO: type endpoint description here

Returns:



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/untitled_api/controllers/about_controller.rb', line 11

def about_retrieve
  new_api_call_builder
    .request(new_request_builder(HttpMethodEnum::GET,
                                 '/about',
                                 Server::DEFAULT)
               .header_param(new_parameter('application/json', key: 'accept'))
               .auth(Or.new('tokenAuth')))
    .response(new_response_handler
               .deserializer(APIHelper.method(:custom_type_deserializer))
               .deserialize_into(AboutResponse1.method(:from_hash)))
    .execute
end