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:
- The registry. Pacticipants, versions, branches and tags, the names Pact tooling uses for your applications — Pact Broker concepts.
- Publishing. Pacts are registered and stored once per distinct content, so an unchanged pact is verified once — Publish and fetch pacts.
- Verifying. Consumer-version selectors, pending and work-in-progress pacts, and verification results — Selectors, Pending and WIP pacts, Verification results.
- Deploying. Environments, deployments and releases, the matrix and can-i-deploy — Environments and deployments, Can I deploy?.
- Around it. Contract webhooks that start CI, public pact badges, labels, deletes you can undo and dry-run-first retention — Webhooks, Badges, Labels, deletes and retention.
- Tested against the real tools. The official CLI and libraries run against Apiome in CI, and Pact Broker compatibility lists every endpoint.
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.
