Sha256: e4a84e1346fc5c641f5fc7e49339f31a767a110e3d2d383b57b580e75138de76

Contents?: true

Size: 605 Bytes

Versions: 32

Compression:

Stored size: 605 Bytes

Contents

# frozen_string_literal: true

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

32 entries across 32 versions & 1 rubygems

Version Path
dor-services-client-15.3.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-15.2.1 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-15.2.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-15.1.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-15.0.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.21.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.20.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.19.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.18.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.17.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.16.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.15.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.14.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.13.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.12.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.11.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.7.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.6.1 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.6.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.5.0 lib/dor/services/client/administrative_tag_search.rb