Sha256: e218a55d84ace5fc0882ebb6b006a3334a5a365c7b5bfcfe88056ba4cafd2643

Contents?: true

Size: 761 Bytes

Versions: 31

Compression:

Stored size: 761 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
        # rubocop:disable Naming/UncommunicativeMethodParamName
        def search(q:)
          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
        # rubocop:enable Naming/UncommunicativeMethodParamName
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
dor-services-client-6.27.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.26.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.26.0.beta.1 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.25.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.24.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.23.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.22.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.21.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.20.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.19.2 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.19.1 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.19.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.18.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.17.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.16.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.15.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.14.1 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.14.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.13.0 lib/dor/services/client/administrative_tag_search.rb
dor-services-client-6.12.0 lib/dor/services/client/administrative_tag_search.rb