Sha256: b8cd0255ba6d1d30a522483ab5d9d7b336d633df133dab7dc6dff1a4b6df85d3

Contents?: true

Size: 679 Bytes

Versions: 66

Compression:

Stored size: 679 Bytes

Contents

# frozen_string_literal: true

require 'active_support/json' # required for serializing time as iso8601

module Dor
  module Services
    class Client
      # API calls that are about searching AdministrativeTags
      class AdministrativeTagSearch < VersionedService
        def search(q:) # rubocop:disable Naming/MethodParameterName
          resp = connection.get do |req|
            req.url "#{api_version}/administrative_tags/search?q=#{q}"
          end

          # Since argo is using this as a proxy, no need to parse the response.
          return resp.body if resp.success?

          raise_exception_based_on_response!(resp)
        end
      end
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
dor-services-client-8.0.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-7.12.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-7.11.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-7.10.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-7.9.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-7.8.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-7.7.1 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-7.7.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-7.6.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-7.5.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-7.4.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-7.3.1 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-7.3.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-7.2.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-7.1.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-7.0.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.36.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.35.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.34.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.33.0 lib/dor/services/client/administrative_tag_search.rb