Sha256: 8e0d4fcf544ac2b314985ad5f036576f3830ccf42c9117c290ccf44bd25b5438
Contents?: true
Size: 785 Bytes
Versions: 6
Compression:
Stored size: 785 Bytes
Contents
require 'pact_broker/api/resources/base_resource' require 'pact_broker/configuration' require 'pact_broker/api/decorators/versions_decorator' module PactBroker module Api module Resources class Versions < BaseResource def content_types_provided [["application/hal+json", :to_json]] end def allowed_methods ["GET", "OPTIONS"] end def resource_exists? !!pacticipant end def to_json PactBroker::Api::Decorators::VersionsDecorator.new(versions).to_json(user_options: decorator_context(identifier_from_path)) end def versions pacticipant_service.find_all_pacticipant_versions_in_reverse_order pacticipant_name end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems