class ReliefWebAPI::DiscoveryApi
Attributes
api_client[RW]
Public Class Methods
new(api_client = ApiClient.default)
click to toggle source
# File lib/reliefweb-api/api/discovery_api.rb, line 19 def initialize(api_client = ApiClient.default) @api_client = api_client end
Public Instance Methods
discovery_resources(opts = {})
click to toggle source
Review list of main entrypoints and top-level resources. @param [Hash] opts the optional parameters @return [nil]
# File lib/reliefweb-api/api/discovery_api.rb, line 25 def discovery_resources(opts = {}) discovery_resources_with_http_info(opts) nil end
discovery_resources_with_http_info(opts = {})
click to toggle source
Review list of main entrypoints and top-level resources. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
# File lib/reliefweb-api/api/discovery_api.rb, line 33 def discovery_resources_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DiscoveryApi.discovery_resources ...' end # resource path local_var_path = '/' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain; charset=utf-8']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: DiscoveryApi#discovery_resources\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end
discovery_versions(opts = {})
click to toggle source
Review location and status of all versions. @param [Hash] opts the optional parameters @return [nil]
# File lib/reliefweb-api/api/discovery_api.rb, line 70 def discovery_versions(opts = {}) discovery_versions_with_http_info(opts) nil end
discovery_versions_with_http_info(opts = {})
click to toggle source
Review location and status of all versions. @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
# File lib/reliefweb-api/api/discovery_api.rb, line 78 def discovery_versions_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DiscoveryApi.discovery_versions ...' end # resource path local_var_path = '/../' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['text/plain; charset=utf-8']) # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) if @api_client.config.debugging @api_client.config.logger.debug "API called: DiscoveryApi#discovery_versions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end