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-13.0.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.18.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.17.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.16.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.15.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.14.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.13.1 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.13.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.12.1 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.12.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.11.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.10.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.9.1 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.9.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.8.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.7.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.6.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.5.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.4.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-12.3.0 lib/dor/services/client/administrative_tag_search.rb