Sha256: 5d5d9d02f281b99ce113c0340f0269ac6ac2f7ef93bbaa15a69fe36c8ef92932
Contents?: true
Size: 522 Bytes
Versions: 5
Compression:
Stored size: 522 Bytes
Contents
require 'pact_broker/api/resources/base_resource' module PactBroker::Api module Resources class LatestPacts < BaseResource def content_types_provided [["application/hal+json", :to_json]] end def allowed_methods ["GET"] end def to_json generate_json(pact_service.find_latest_pacts) end def generate_json pacts PactBroker::Api::Decorators::PactCollectionDecorator.new(pacts).to_json(base_url: resource_url) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems