Skip to content

Commit dca0ad4

Browse files
committed
feat: add hal relation for creating a tag on the pacticipant version resource
1 parent a1fa083 commit dca0ad4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/pact_broker/api/decorators/version_decorator.rb

+8
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ class VersionDecorator < BaseDecorator
2626
}
2727
end
2828

29+
link :'pb:tag' do | options |
30+
{
31+
href: pacticipant_url(options.fetch(:base_url), represented.pacticipant) + '/tags/{tag}',
32+
title: "Get, create or delete a tag for this pacticipant version",
33+
templated: true
34+
}
35+
end
36+
2937
link :'pb:latest-verification-results-where-pacticipant-is-consumer' do | options |
3038
{
3139
title: "Latest verification results for consumer version",

0 commit comments

Comments
 (0)