I have some doubts with the pact-broker api. I wo...
# pact-broker
j
I have some doubts with the pact-broker api. I would like to to get all pacts via api for a consumer on one hand and then I would like to get all the pacts via api for a provider onther other hand. How should I do it? If try this way, with this url: https//pactbroker-base-url/pacticipants/pacticipant-name-consumer/versions/number-consumer i get a response with this schema where I can get all the pacts related (√). { ... pbpact versions [{ title: "...", name: "...", href: "https://pactflow.scrm.lidl/verification-results/consumer/pacticipant-name-consumer/version/number-consumer/latest" }, ...] ... } BUT if i try the same url with a pacticipant as provider https://pactbroker-base-url/pacticipants/pacticipant-name-provider/versions/number-provider i get a response without "pb:pact-version" on this schema and I cannot get all the pacts related. (x) { ... pbpact versions [{}] not exists ... } thank you!
m
what are you trying to achieve, Jose?
j
Hi Matt, I would like to develop a Backstage-plugin for PactFlow with React. My idea is to build a frontend plugin like your dashboard (but simpler). This react-app will be a Tab on Backstage where any user can click on a pact (given a pacticipant) to go to PactBroker and get the final information,
m
OK no probs
there are a few APIs documented here: https://smartbear.portal.swaggerhub.com/pactflow/default/getting-started The
/integrations
endpoint might be a helpful starting point to navigate the hierarchy
j
many thanks!