Skip to content

Commit

Permalink
feat: add hal relation for creating a tag on the pacticipant version …
Browse files Browse the repository at this point in the history
…resource
  • Loading branch information
bethesque committed Jan 10, 2020
1 parent a1fa083 commit dca0ad4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/pact_broker/api/decorators/version_decorator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,14 @@ class VersionDecorator < BaseDecorator
}
end

link :'pb:tag' do | options |
{
href: pacticipant_url(options.fetch(:base_url), represented.pacticipant) + '/tags/{tag}',
title: "Get, create or delete a tag for this pacticipant version",
templated: true
}
end

link :'pb:latest-verification-results-where-pacticipant-is-consumer' do | options |
{
title: "Latest verification results for consumer version",
Expand Down

0 comments on commit dca0ad4

Please sign in to comment.