lib/pact_broker/api/resources/integrations.rb in pact_broker-2.30.0 vs lib/pact_broker/api/resources/integrations.rb in pact_broker-2.31.0

- old
+ new

@@ -8,18 +8,23 @@ def content_types_provided [["text/vnd.graphviz", :to_dot]] end def allowed_methods - ["GET", "OPTIONS"] + ["GET", "OPTIONS", "DELETE"] end def to_dot PactBroker::Api::Renderers::IntegrationsDotRenderer.call(integrations) end def integrations pact_service.find_latest_pacts + end + + def delete_resource + integration_service.delete(consumer_name, provider_name) + true end end end end end