Sha256: 55923b48b58515a318878a528231bff4e000228447f38848b570e2fab48ed489
Contents?: true
Size: 827 Bytes
Versions: 34
Compression:
Stored size: 827 Bytes
Contents
require_relative 'base_decorator' require 'pact_broker/api/decorators/webhook_decorator' module PactBroker module Api module Decorators class WebhooksDecorator < BaseDecorator link :self do | context | { title: context[:resource_title], href: context[:resource_url] } end links :webhooks do | context | represented.entries.collect do | webhook | { title: webhook.description, name: webhook.request_description, href: webhook_url(webhook.uuid, context[:base_url]) } end end curies do | context | [{ name: :pb, href: context[:base_url] + '/doc/webhooks', }] end end end end end
Version data entries
34 entries across 34 versions & 1 rubygems