Skip to content

Commit 2c4c258

Browse files
committed
feat: add pb:pacticipant and pb:pacticipant-version-tag relations to the index resource
1 parent 118bbee commit 2c4c258

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/pact_broker/api/resources/index.rb

+12
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,12 @@ def links
5050
title: 'Pacticipants',
5151
templated: false
5252
},
53+
'pb:pacticipant' =>
54+
{
55+
href: base_url + '/pacticipants/{pacticipant}',
56+
title: 'Fetch pacticipant by name',
57+
templated: true
58+
},
5359
'pb:latest-provider-pacts' =>
5460
{
5561
href: base_url + '/pacts/provider/{provider}/latest',
@@ -94,6 +100,12 @@ def links
94100
title: 'Integrations',
95101
templated: false
96102
},
103+
'pb:pacticipant-version-tag' =>
104+
{
105+
href: base_url + '/pacticipants/{pacticipant}/versions/{version}/tags/{tag}',
106+
title: "Get, create or delete a tag for a pacticipant version",
107+
templated: true
108+
},
97109
'beta:pending-provider-pacts' =>
98110
{
99111
href: base_url + '/pacts/provider/{provider}/pending',

0 commit comments

Comments
 (0)