Class: StickyIoRestfulApiV2025731::MiscController
- Inherits:
-
BaseController
- Object
- BaseController
- StickyIoRestfulApiV2025731::MiscController
- Defined in:
- lib/sticky_io_restful_api_v2025731/controllers/misc_controller.rb
Overview
MiscController
Constant Summary
Constants inherited from BaseController
Instance Attribute Summary
Attributes inherited from BaseController
Instance Method Summary collapse
-
#validate_address(body, domain, v2_ext) ⇒ ApiResponse
TODO: type endpoint description here description here.
Methods inherited from BaseController
#initialize, #new_parameter, #new_request_builder, #new_response_handler, user_agent, user_agent_parameters
Constructor Details
This class inherits a constructor from StickyIoRestfulApiV2025731::BaseController
Instance Method Details
#validate_address(body, domain, v2_ext) ⇒ ApiResponse
TODO: type endpoint description here description here
15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/sticky_io_restful_api_v2025731/controllers/misc_controller.rb', line 15 def validate_address(body, domain, v2_ext) @api_call .request(new_request_builder(HttpMethodEnum::POST, '/.{domain}{v2_ext}validate_address', Server::SERVER_1) .header_param(new_parameter('application/json', key: 'Content-Type')) .body_param(new_parameter(body) .is_required(true)) .template_param(new_parameter(domain, key: 'domain') .is_required(true) .should_encode(true)) .template_param(new_parameter(v2_ext, key: 'v2_ext') .is_required(true) .should_encode(true)) .body_serializer(proc do |param| param.to_json unless param.nil? end) .auth(Single.new('basic'))) .response(new_response_handler .is_response_void(true) .is_api_response(true)) .execute end |