Skip to main content

Pact Broker core: model, API and can-i-deploy

The Pact Broker core is complete. Your Pact tools — the pact-broker CLI, the pact CLI, pact-js and pact-jvm — now work against Apiome unchanged, from the consumer's first published pact to the can-i-deploy check that gates a release. A new Pact Broker overview page walks through it end to end.

Point your tools at your workspace. Give them the broker base URL and an API key as the token:

export PACT_BROKER_BASE_URL=https://api.apiome.dev/v1/tenants/acme/pact-broker
export PACT_BROKER_TOKEN=$APIOME_API_KEY
pact-broker can-i-deploy --pacticipant "Billing Service" --version "$GIT_COMMIT" --to-environment production

What the core covers:

Not yet available: a screen for pacts, the matrix and can-i-deploy (the Contracts workspace), and bi-directional contract testing against an OpenAPI provider contract.

Every endpoint is in the Pact Broker API and the Pacticipants API reference.