Skip to content

Commit

Permalink
feat: add pb:pacticipant and pb:pacticipant-version-tag relations to …
Browse files Browse the repository at this point in the history
…the index resource
  • Loading branch information
bethesque committed Jun 7, 2019
1 parent 118bbee commit 2c4c258
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/pact_broker/api/resources/index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,12 @@ def links
title: 'Pacticipants',
templated: false
},
'pb:pacticipant' =>
{
href: base_url + '/pacticipants/{pacticipant}',
title: 'Fetch pacticipant by name',
templated: true
},
'pb:latest-provider-pacts' =>
{
href: base_url + '/pacts/provider/{provider}/latest',
Expand Down Expand Up @@ -94,6 +100,12 @@ def links
title: 'Integrations',
templated: false
},
'pb:pacticipant-version-tag' =>
{
href: base_url + '/pacticipants/{pacticipant}/versions/{version}/tags/{tag}',
title: "Get, create or delete a tag for a pacticipant version",
templated: true
},
'beta:pending-provider-pacts' =>
{
href: base_url + '/pacts/provider/{provider}/pending',
Expand Down

0 comments on commit 2c4c258

Please sign in to comment.