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-14.4.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.3.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.2.1 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.2.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.1.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-14.0.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-13.4.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-13.3.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-13.2.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-13.1.1 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-13.1.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-13.0.1 lib/dor/services/client/administrative_tag_search.rb