What API call should I make to retrieve pacts with...
# pact-broker
t
What API call should I make to retrieve pacts with consumer version selectors? The docs I found just talk about tags
Reading the Ruby (which I’m not good at reading), it looks like maybe you just use the pacts for verification endpoint, and add query parameters like
include_pending_status
and
environment
?
Ah, maybe I can use the post body with an array? What’s the format? Is it just:
Copy code
{ 
consumerVersionSelectors: [
    {
      mainBranch: true
    },
    {
      environment: 'test'
    }
  ]
}
etc?
m
The selectors payload has evolved as per those docs above
t
Awesome, thanks!