Method: UCS#rest_get

Defined in:
lib/ucslib/service/ucs/ucs.rb

#rest_get(api_url) ⇒ Hash

Generic API get call

Parameters:

  • api_url (string)

    the full API URL path

Returns:

  • (Hash)

    the object converted into Hash format and can be parsed with object or object notation



86
87
88
89
90
# File 'lib/ucslib/service/ucs/ucs.rb', line 86

def rest_get(api_url)
  RestClient::Request.execute(method: :get,
    url: api_url,
    verify_ssl: @verify_ssl).body
end