Sha256: ad9e1650f29166e346e43ac7b9e165f4977b74aeac0307c317c309a2ff527811

Contents?: true

Size: 654 Bytes

Versions: 39

Compression:

Stored size: 654 Bytes

Contents

require "pact_broker/api/resources/version"

module PactBroker
  module Api
    module Resources
      class LatestVersion < Version
        def content_types_accepted
          []
        end

        def allowed_methods
          ["GET", "OPTIONS"]
        end

        private

        def version
          if identifier_from_path[:tag]
            @version ||= version_service.find_by_pacticipant_name_and_latest_tag(identifier_from_path[:pacticipant_name], identifier_from_path[:tag])
          else
            @version ||= version_service.find_latest_by_pacticpant_name(identifier_from_path)
          end
        end
      end
    end
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
pact_broker-2.107.1 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.107.0 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.107.0.beta.1 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.106.0 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.105.0 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.104.0 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.103.0 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.102.2 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.102.1 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.102.0 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.101.0 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.100.0 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.99.0 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.98.0 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.97.0 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.96.0 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.95.1 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.95.0 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.94.0 lib/pact_broker/api/resources/latest_version.rb
pact_broker-2.93.4 lib/pact_broker/api/resources/latest_version.rb