We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d587d9 commit ccdd46fCopy full SHA for ccdd46f
lib/pact_broker/api/decorators/pact_collection_decorator.rb
@@ -24,12 +24,23 @@ def create_representable_pact pact
24
latest_pacts_url(options[:base_url])
25
end
26
27
+ # This is the LATEST pact URL
28
+ links :'pb:pacts' do | options |
29
+ represented.collect do | pact |
30
+ {
31
+ :href => latest_pact_url(options[:base_url], pact),
32
+ :title => "Latest pact between #{pact.consumer.name} and #{pact.provider.name}",
33
+ }
34
+ end
35
36
+
37
# This is the LATEST pact URL
38
links :pacts do | options |
39
represented.collect do | pact |
40
{
41
:href => latest_pact_url(options[:base_url], pact),
42
:title => "Latest pact between #{pact.consumer.name} and #{pact.provider.name}",
43
+ :name => "DEPRECATED - please use the pb:pacts relation"
44
}
45
46
0 commit comments