Method: UntitledApi::Configuration#get_base_uri
- Defined in:
- lib/untitled_api/configuration.rb
#get_base_uri(server = Server::DEFAULT) ⇒ String
Generates the appropriate base URI for the environment and the server. required.
126 127 128 129 130 131 132 133 |
# File 'lib/untitled_api/configuration.rb', line 126 def get_base_uri(server = Server::DEFAULT) parameters = { 'defaultHost' => { 'value' => default_host, 'encode' => false } } APIHelper.append_url_with_template_parameters( ENVIRONMENTS[environment][server], parameters ) end |