Sha256: 9a0bf76832f9f99cfb5473ddf5b09944906986e3b575d98b8836f998f98c4af4
Contents?: true
Size: 694 Bytes
Versions: 32
Compression:
Stored size: 694 Bytes
Contents
require 'pact_broker/api/resources/base_resource' require 'pact_broker/api/decorators/pacticipant_collection_decorator' module PactBroker module Api module Resources class PacticipantsForLabel < BaseResource def content_types_provided [["application/hal+json", :to_json]] end def allowed_methods ["GET"] end def to_json generate_json(pacticipant_service.find identifier_from_path ) end def generate_json pacticipants PactBroker::Api::Decorators::PacticipantCollectionDecorator.new(pacticipants).to_json(user_options: { base_url: base_url }) end end end end end
Version data entries
32 entries across 32 versions & 1 rubygems