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