Sha256: 5e6acc11730298621c0e98a2a6cddb999fd128fbab4c87a06d1c0cc39107eb6e
Contents?: true
Size: 871 Bytes
Versions: 9
Compression:
Stored size: 871 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]) elsif identifier_from_path[:branch_name] @version ||= version_service.find_latest_by_pacticipant_name_and_branch_name(identifier_from_path[:pacticipant_name], identifier_from_path[:branch_name]) else @version ||= version_service.find_latest_by_pacticpant_name(identifier_from_path) end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems