Sha256: 78d1ccec0dbcd04bd593ed6164bbbde45feaa3ccf67b13622f4a3e8e8666bbdf
Contents?: true
Size: 686 Bytes
Versions: 6
Compression:
Stored size: 686 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", "OPTIONS"] 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(decorator_options) end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems