Sha256: d0352b85530fdc1df0f56c0c815126f749a6ae83d9c95465c81f767ac8dc8e8d
Contents?: true
Size: 754 Bytes
Versions: 9
Compression:
Stored size: 754 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 decorator_class(:pacticipant_collection_decorator).new(pacticipants).to_json(decorator_options) end def policy_name :'pacticipants::pacticipants' end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems