From 2c4c258c677d72c8f24d6b00046422cf7002fdcf Mon Sep 17 00:00:00 2001 From: Beth Skurrie Date: Fri, 7 Jun 2019 11:25:05 +1000 Subject: [PATCH] feat: add pb:pacticipant and pb:pacticipant-version-tag relations to the index resource --- lib/pact_broker/api/resources/index.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/pact_broker/api/resources/index.rb b/lib/pact_broker/api/resources/index.rb index acef34a8d..0d6089102 100644 --- a/lib/pact_broker/api/resources/index.rb +++ b/lib/pact_broker/api/resources/index.rb @@ -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', @@ -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',