app/services/external_apis/re3data_service.rb
def query_re3data
        # Call the ROR API and log any errors
        resp = http_get(uri: "#{api_base_url}#{list_path}", additional_headers: {},
                        debug: false)

        unless resp.present? && resp.code == 200
          handle_http_failure(method: "re3data list", http_response: resp)
          return nil
        end
        Nokogiri.XML(resp.body, nil, "utf8")
      end
# Queries the re3data API for the full list of repositories
Queries the re3data API for the full list of repositories
Queries the re3data API for the full list of repositories
def query_re3data
        resp = http_get(uri: "#{api_base_url}#{list_path}", additional_headers: {},
                        debug: false)
        unless resp.present? && resp.code == 200
          handle_http_failure(method: "re3data list", http_response: resp)
          return nil
        end
        Nokogiri.XML(resp.body, nil, "utf8")
      end
def query_re3data resp = http_get ( uri : "#{api_base_url}#{list_path}" , additional_headers : { } , debug : false ) unless resp . present? && resp . code == 200 handle_http_failure ( method : "re3data list" , http_response : resp ) return nil end Nokogiri . XML ( resp . body , nil , "utf8" ) end
Queries the re3data API for the full list of repositories
Queries the re3data API for the full list of repositories
# Call the ROR API and log any errors