Pact Broker compatibility
Apiome speaks the Pact Broker's API, so the pact-broker CLI and the Pact libraries work against it
after you change only their broker base URL and token. This page lists every endpoint of
the Pact Broker's API and how much of it Apiome serves. A conformance suite runs the official tools
against Apiome in CI to keep the list true.
What the statuses meanβ
| Status | Meaning |
|---|
| β
Supported | Every method the Pact Broker allows works, in the Pact Broker's shape. |
| β Partial | Some methods work. The others answer 501. |
| π Planned | Not served yet. The linked issue schedules it. |
| β Not planned | Not served, and nothing is scheduled. The notes say what to use instead. |
When you reach an endpoint Apiome does not serveβ
The pact-broker CLI finds every endpoint through the links on the broker's index. Apiome's index
links only what it serves. So a command for a missing feature stops before it sends a request, and
says the broker does not have it:
$ pact-broker delete-branch --branch main --pacticipant checkout-web
This version of the Pact Broker does not support deleting branches. β¦
A client or script that builds the URL itself never gets a bare 404 for a missing endpoint.
It gets 501 Not Implemented with a Link header to this page, and a body that names the endpoint,
its status, the methods that do work, the tracking issue (when one is scheduled) and the Apiome
route to use instead:
{
"detail": {
"code": "pact-broker-not-implemented",
"message": "PUT is not supported on βA pacticipantβ (partial). Supported: GET, DELETE. β¦",
"pointer": "/v1/tenants/acme/pact-broker/pacticipants/checkout-web",
"endpoint": "/pacticipants/{pacticipant}",
"status": "partial",
"supported_methods": ["GET", "DELETE"],
"alternative": "/v1/tenants/{tenant}/pacticipants/{pacticipant}",
"documentation": "https://docs.apiome.dev/ship/pact-broker/compatibility",
"pact_broker_version": "2.124.0"
}
}
A path that is not part of the Pact Broker's API at all gets the same 501, without the
endpoint fields. A 404 from a supported endpoint still means what it means on the Pact Broker:
that pact, version or pacticipant does not exist.
Behaviour that matches the Pact Brokerβ
- Main branch detection. The first time a version of a pacticipant is published on
develop,
main or master, that branch becomes its main branch, unless one is already set. This is
the Pact Broker's auto_detect_main_branch. It means {"mainBranch": true} selectors work
without any set-up. See Choose pacts to verify with selectors.
- Pact-Ruby verification results. The verifier in the
pact-cli image sends testResults as
an object ({"tests": [...], "summary": ...}). Apiome keeps its tests list. See
Publish verification results.
- Labels.
β¦/labels, β¦/pacticipants/label/{label} and β¦/pacticipants/{p}/labels/{label}
answer in the Pact Broker's shape. See Labels, deletes and retention.
- Deletes are soft.
DELETE β¦/pacticipants/{p} and β¦/versions/{v} answer 204 as on the Pact
Broker, but what they delete can be restored for 30 days, and a deployed version is protected
unless force=true. See Labels, deletes and retention.
GET β¦/for-verification. The Rust verifier inside pact-js, pact-python and pact-go reads this
resource with GET before it posts its selectors. Apiome answers both forms.
Endpointsβ
Checked against Pact Broker 2.124.0: 109 endpoints β 45 supported, 6 partial, 0 planned, 58 not planned.
| Endpoint | Apiome serves | Not served | Status | Notes |
|---|
/ β Index (HAL entry point) | GET | β | β
Supported | Used by every client. |
Publishing and fetching pactsβ
| Endpoint | Apiome serves | Not served | Status | Notes |
|---|
/contracts/publish β Publish the pacts of a consumer version | POST | β | β
Supported | Used by pact-broker publish, pact-js publishPacts, pact-jvm pactPublish. |
/pacts/provider/{provider}/consumer/{consumer}/version/{consumerVersion} β A pact of a consumer version | GET PUT | DELETE PATCH | β Partial | Used by older pact-broker publish, pact-jvm publisher. PATCH (merging interactions into a published pact) is not planned: a pact is immutable. DELETE: Delete the consumer version instead (DELETE β¦/pacticipants/{p}/versions/{v}), which removes its pacts. |
/pacts/provider/{provider}/consumer/{consumer}/latest β Latest pact of a consumer and provider | GET | β | β
Supported | β |
/pacts/provider/{provider}/consumer/{consumer}/latest/{tag} β Latest pact with a tag | GET | β | β
Supported | β |
/pacts/provider/{provider}/consumer/{consumer}/branch/{branch}/latest β Latest pact from a branch | GET | β | β
Supported | β |
/pacts/provider/{provider}/consumer/{consumer}/latest-untagged β Latest untagged pact | β | GET | β Not planned | Tags are legacy in the Pact Broker; use branches, or β¦/latest. |
/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha} β A pact by its content version | GET | β | β
Supported | Used by every verifier. |
/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha}/metadata/{metadata} β A pact as a for-verification link names it | GET | β | β
Supported | β |
/pacts/provider/{provider}/for-verification β Pacts a provider must verify (consumer-version selectors) | GET POST | β | β
Supported | Used by pact-js, pact-jvm, pact-go, pact-python, the Rust and Ruby verifiers. The Rust verifier GETs the resource before it POSTs its selectors. |
/pacts/provider/{provider}/latest β Latest pact of every consumer | GET | β | β
Supported | β |
/pacts/provider/{provider}/latest/{tag} β Latest tagged pact of every consumer | GET | β | β
Supported | β |
/pacts/provider/{provider} β Every pact of a provider | β | GET | β Not planned | Use β¦/latest or for-verification. |
/pacts/provider/{provider}/tag/{tag} β Every pact of a provider with a tag | β | GET | β Not planned | Use β¦/latest/{tag} or a tag selector. |
/pacts/provider/{provider}/branch β Pacts from each consumer's main branch | β | GET | β Not planned | Use a mainBranch selector on for-verification. |
/pacts/provider/{provider}/branch/{branch} β Pacts from a consumer branch | β | GET | β Not planned | Use a branch selector on for-verification. |
/pacts/provider/{provider}/branch/latest β Latest pacts from each consumer's main branch | β | GET | β Not planned | Use a mainBranch selector on for-verification. |
/pacts/provider/{provider}/branch/{branch}/latest β Latest pacts from a consumer branch | β | GET | β Not planned | Use a branch selector on for-verification. |
/pacts/latest β Latest pact of every integration | β | GET | β Not planned | Used by pact-broker list-latest-pact-versions. Not planned in the broker shape. Use the GET β¦/matrix query. |
/pacts/provider/{provider}/provider-states β Provider states the consumers use | β | GET | β Not planned | Provider states are declared in Apiome's own registry (PFX-3.3, #6933). |
/pacts/provider/{provider}/provider-states/branch/{branch} β Provider states from a consumer branch | β | GET | β Not planned | See PFX-3.3 (#6933). |
/pacts/provider/{provider}/provider-states/environment/{uuid} β Provider states of what is deployed in an environment | β | GET | β Not planned | See PFX-3.3 (#6933). |
/pact/provider/{provider}/consumer/{consumer}/version/{consumerVersion} β Deprecated singular /pact/β¦ path | β | GET PUT DELETE PATCH | β Not planned | Deprecated in the Pact Broker; use /pacts/β¦. |
/pact/provider/{provider}/consumer/{consumer}/latest β Deprecated singular /pact/β¦/latest path | β | GET | β Not planned | Deprecated in the Pact Broker; use /pacts/β¦/latest. |
Pact history and diffsβ
| Endpoint | Apiome serves | Not served | Status | Notes |
|---|
/pacts/provider/{provider}/consumer/{consumer}/versions β Every published pact of an integration | β | GET DELETE | β Not planned | Not planned in the broker shape; clean a history up with a retention run. Use /v1/tenants/{tenant}/pact-retention. |
/pacts/provider/{provider}/consumer/{consumer}/versions/{consumerVersion} β Deprecated alias of β¦/version/{v} | β | GET PUT DELETE PATCH | β Not planned | Deprecated in the Pact Broker; use β¦/version/{v}. |
/pacts/provider/{provider}/consumer/{consumer}/tag/{tag} β Every pact with a tag | β | GET DELETE | β Not planned | Tags are legacy in the Pact Broker; use branches. |
/pacts/provider/{provider}/consumer/{consumer}/branch/versions β Pacts from the main branch | β | GET DELETE | β Not planned | Not planned. |
/pacts/provider/{provider}/consumer/{consumer}/branch/{branch} β Pacts from a branch | β | GET DELETE | β Not planned | Not planned. |
/pacts/provider/{provider}/consumer/{consumer}/branch/latest/versions β Latest pacts from the main branch | β | GET DELETE | β Not planned | Not planned. |
/pacts/provider/{provider}/consumer/{consumer}/branch/{branch}/latest/versions β Latest pacts from a branch | β | GET DELETE | β Not planned | Not planned. |
/pacts/provider/{provider}/consumer/{consumer}/version/{consumerVersion}/previous-distinct β The previous different pact | β | GET | β Not planned | The pact viewer shows the difference (PFX-5.2, #6946). |
/pacts/provider/{provider}/consumer/{consumer}/version/{consumerVersion}/diff/previous-distinct β Diff with the previous different pact | β | GET | β Not planned | The pact viewer shows the difference (PFX-5.2, #6946). |
/pacts/provider/{provider}/consumer/{consumer}/version/{consumerVersion}/diff/version/{otherVersion} β Diff with another consumer version's pact | β | GET | β Not planned | The pact viewer shows the difference (PFX-5.2, #6946). |
/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha}/diff/pact-version/{otherSha} β Diff with another pact version | β | GET | β Not planned | The pact viewer shows the difference (PFX-5.2, #6946). |
Verification resultsβ
| Endpoint | Apiome serves | Not served | Status | Notes |
|---|
/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha}/verification-results β Publish a verification result | POST | β | β
Supported | Used by every verifier with result publishing on. |
/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha}/metadata/{metadata}/verification-results β Publish a result (for-verification link form) | POST | β | β
Supported | Used by verifiers that follow pb:publish-verification-results. |
/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha}/verification-results/latest β Latest result of a pact version | GET | β | β
Supported | β |
/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha}/verification-results/{number} β One verification result | GET | DELETE | β Partial | Deleting one result is not planned; deleting the provider version removes the results it published. |
/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha}/metadata/{metadata}/verification-results/{number} β One result (for-verification link form) | β | GET DELETE | β Not planned | Use β¦/pact-version/{sha}/verification-results/{n}. |
/pacts/provider/{provider}/consumer/{consumer}/pact-version/{sha}/verification-results/{number}/triggered-webhooks β Webhooks a result triggered | GET | β | β
Supported | β |
/pacts/provider/{provider}/consumer/{consumer}/version/{consumerVersion}/verification-results/latest β Latest result of a consumer version's pact | β | GET | β Not planned | Use β¦/pact-version/{sha}/verification-results/latest. |
/pacts/provider/{provider}/consumer/{consumer}/latest/verification-results/latest β Latest result of the latest pact | β | GET | β Not planned | Use the matrix. |
/pacts/provider/{provider}/consumer/{consumer}/latest/{tag}/verification-results/latest β Latest result of the latest tagged pact | β | GET | β Not planned | Use the matrix. |
/verification-results/consumer/{consumer}/version/{consumerVersion}/latest β Latest results for a consumer version | β | GET | β Not planned | Use the matrix (q[][pacticipant]=β¦&q[][version]=β¦). |
Pacticipants and versionsβ
| Endpoint | Apiome serves | Not served | Status | Notes |
|---|
/pacticipants β List or create pacticipants | β | GET POST | β Not planned | Used by pact-broker list-pacticipants, create-or-update-pacticipant. Not planned in the broker shape. Use /v1/tenants/{tenant}/pacticipants. |
/pacticipants/{pacticipant} β A pacticipant | GET DELETE | PUT PATCH | β Partial | Used by pact-broker describe-pacticipant, create-or-update-pacticipant. To create or update one (main branch, repository URL) use Apiome's pacticipant API. DELETE is soft: restorable until it is purged, and refused while a version is deployed unless force=true. Use /v1/tenants/{tenant}/pacticipants/{pacticipant}. |
/pacticipants/{pacticipant}/versions β Versions of a pacticipant | β | GET | β Not planned | Not planned in the broker shape. Use /v1/tenants/{tenant}/pacticipants/{pacticipant}/versions. |
/pacticipants/{pacticipant}/versions/{version} β A pacticipant version | GET DELETE | PUT PATCH | β Partial | Used by pact-broker describe-version, record-deployment, create-or-update-version. To record a version without publishing a pact use Apiome's pacticipant API. DELETE is soft: restorable until it is purged, and refused while it is deployed unless force=true. Use /v1/tenants/{tenant}/pacticipants/{pacticipant}/versions/{version}. |
/pacticipants/{pacticipant}/latest-version β Latest version of a pacticipant | β | GET | β Not planned | Used by pact-broker describe-version --latest. Not planned in the broker shape. Use /v1/tenants/{tenant}/pacticipants/{pacticipant}/versions. |
/pacticipants/{pacticipant}/latest-version/{tag} β Latest version with a tag | β | GET | β Not planned | Not planned in the broker shape. Use /v1/tenants/{tenant}/pacticipants/{pacticipant}/versions?tag={tag}. |
/pacticipants/{pacticipant}/deployed-or-released/versions β Versions deployed or released anywhere | β | GET | β Not planned | Use the environment's currently-deployed and currently-supported lists. |
/pacticipants/{pacticipant}/environments/{uuid}/versions β Versions in an environment | β | GET | β Not planned | Use the environment's currently-deployed and currently-supported lists. |
| Endpoint | Apiome serves | Not served | Status | Notes |
|---|
/pacticipants/{pacticipant}/branches β Branches of a pacticipant | β | GET DELETE | β Not planned | Not planned in the broker shape. Use /v1/tenants/{tenant}/pacticipants/{pacticipant}/branches. |
/pacticipants/{pacticipant}/branches/{branch} β A branch | β | GET DELETE | β Not planned | Used by pact-broker delete-branch. Not planned: a branch goes when its versions are deleted, by hand or by a retention run. Use /v1/tenants/{tenant}/pact-retention. |
/pacticipants/{pacticipant}/branches/{branch}/versions β Versions on a branch | β | GET | β Not planned | Not planned in the broker shape. Use /v1/tenants/{tenant}/pacticipants/{pacticipant}/versions?branch={branch}. |
/pacticipants/{pacticipant}/branches/{branch}/versions/{version} β Add a version to a branch | PUT | GET DELETE | β Partial | Used by pact-broker create-version-tag --auto-create-version, pact-jvm. A version's branches are on its own document; taking one off a branch is not planned. |
/pacticipants/{pacticipant}/branches/{branch}/latest-version β Latest version on a branch | β | GET | β Not planned | Not planned in the broker shape. Use /v1/tenants/{tenant}/pacticipants/{pacticipant}/branches. |
/pacticipants/{pacticipant}/versions/{version}/tags/{tag} β A tag on a version | PUT | GET DELETE | β Partial | Used by pact-broker create-version-tag, publish --tag. A version's tags are on its own document; removing one tag is not planned. |
/pacticipants/{pacticipant}/tags/{tag}/versions β Versions with a tag | β | GET | β Not planned | Not planned in the broker shape. Use /v1/tenants/{tenant}/pacticipants/{pacticipant}/versions?tag={tag}. |
Environments and deploymentsβ
| Endpoint | Apiome serves | Not served | Status | Notes |
|---|
/environments β List or create environments | GET POST | β | β
Supported | Used by pact-broker list-environments, create-environment. |
/environments/{uuid} β An environment | GET PUT DELETE | β | β
Supported | Used by pact-broker describe-environment, update-environment, delete-environment. |
/environments/{uuid}/deployed-versions/currently-deployed β What is deployed in an environment | GET | β | β
Supported | Used by pact-broker record-undeployment. |
/environments/{uuid}/released-versions/currently-supported β What is released and supported | GET | β | β
Supported | Used by pact-broker record-support-ended. |
/pacticipants/{pacticipant}/versions/{version}/deployed-versions/environment/{uuid} β Record a deployment | GET POST | β | β
Supported | Used by pact-broker record-deployment. |
/pacticipants/{pacticipant}/versions/{version}/released-versions/environment/{uuid} β Record a release | GET POST | β | β
Supported | Used by pact-broker record-release. |
/deployed-versions/{uuid} β A deployment (mark it undeployed) | GET PATCH | β | β
Supported | Used by pact-broker record-undeployment. apiome pact record-undeployment picks the deployment the same way (the named instance, or the unnamed one) and the Environments board's Record an undeployment sends the same patch; who ended it is kept for the Environments history (PFX-8.13). |
/released-versions/{uuid} β A release (end its support) | GET PATCH | β | β
Supported | Used by pact-broker record-support-ended. apiome pact record-support-ended and the board's End support send the same patch; from then on can-i-deploy no longer counts the release (PFX-8.13). |
Matrix and can-i-deployβ
| Endpoint | Apiome serves | Not served | Status | Notes |
|---|
/matrix β The compatibility matrix | GET | β | β
Supported | Used by pact-broker can-i-deploy. |
/can-i-deploy β Can a version be deployed to an environment | GET | β | β
Supported | β |
/matrix/provider/{provider}/consumer/{consumer} β The matrix of one integration | β | GET | β Not planned | Use GET β¦/matrix with two q[] selectors. |
/pacticipants/{pacticipant}/latest-version/{tag}/can-i-deploy/to/{to} β Can the latest tagged version be deployed to a tag | β | GET | β Not planned | Tags are legacy; use GET β¦/can-i-deploy. |
/pacticipants/{pacticipant}/branches/{branch}/latest-version/can-i-deploy/to-environment/{environment} β Can a branch's latest version be deployed | β | GET | β Not planned | Use GET β¦/can-i-deploy with the version. |
Webhooksβ
| Endpoint | Apiome serves | Not served | Status | Notes |
|---|
/webhooks β List or create webhooks | GET POST | β | β
Supported | Used by pact-broker create-webhook. |
/webhooks/{uuid} β A webhook | GET PUT DELETE | β | β
Supported | Used by pact-broker create-or-update-webhook. |
/webhooks/{uuid}/execute β Run a webhook now | POST | β | β
Supported | Used by pact-broker test-webhook. |
/webhooks/execute β Run an unsaved webhook | POST | β | β
Supported | β |
/webhooks/provider/{provider}/consumer/{consumer} β Webhooks of an integration | GET POST | β | β
Supported | β |
/webhooks/provider/{provider} β Webhooks of a provider | GET POST | β | β
Supported | β |
/webhooks/consumer/{consumer} β Webhooks of a consumer | GET POST | β | β
Supported | β |
/pacts/provider/{provider}/consumer/{consumer}/webhooks β Webhooks of a pact | GET POST | β | β
Supported | β |
/pacts/provider/{provider}/consumer/{consumer}/webhooks/status β Webhook status of a pact | GET | β | β
Supported | β |
/pacts/provider/{provider}/consumer/{consumer}/version/{consumerVersion}/triggered-webhooks β Webhooks a publication triggered | GET | β | β
Supported | β |
/triggered-webhooks/{uuid}/logs β Execution log of a webhook run | GET | β | β
Supported | β |
| Endpoint | Apiome serves | Not served | Status | Notes |
|---|
/pacts/provider/{provider}/consumer/{consumer}/latest/badge β Badge of the latest pact | β | GET | β Not planned | Apiome serves public SVG and shields.io status badges for a public project instead, not the broker's tag-aware ones. Use /v1/browse/tenants/{tenant}/projects/{project}/pact-badges. |
/pacts/provider/{provider}/consumer/{consumer}/latest/{tag}/badge β Badge of the latest tagged pact | β | GET | β Not planned | Apiome serves public SVG and shields.io status badges for a public project instead, not the broker's tag-aware ones. Use /v1/browse/tenants/{tenant}/projects/{project}/pact-badges. |
/pacts/provider/{provider}/consumer/{consumer}/latest-untagged/badge β Badge of the latest untagged pact | β | GET | β Not planned | Apiome serves public SVG and shields.io status badges for a public project instead, not the broker's tag-aware ones. Use /v1/browse/tenants/{tenant}/projects/{project}/pact-badges. |
/matrix/provider/{provider}/latest/{providerTag}/consumer/{consumer}/latest/{tag}/badge β Badge of a tagged matrix row | β | GET | β Not planned | Apiome serves public SVG and shields.io status badges for a public project instead, not the broker's tag-aware ones. Use /v1/browse/tenants/{tenant}/projects/{project}/pact-badges. |
/pacticipants/{pacticipant}/latest-version/{tag}/can-i-deploy/to/{to}/badge β can-i-deploy badge (tag to tag) | β | GET | β Not planned | Apiome serves public SVG and shields.io status badges for a public project instead, not the broker's tag-aware ones. Use /v1/browse/tenants/{tenant}/projects/{project}/pact-badges. |
/pacticipants/{pacticipant}/branches/{branch}/latest-version/can-i-deploy/to-environment/{environment}/badge β can-i-deploy badge (branch to environment) | β | GET | β Not planned | Apiome serves public SVG and shields.io status badges for a public project instead, not the broker's tag-aware ones. Use /v1/browse/tenants/{tenant}/projects/{project}/pact-badges. |
/pacticipants/{pacticipant}/main-branch/can-i-merge/badge β can-i-merge badge | β | GET | β Not planned | Apiome serves public SVG and shields.io status badges for a public project instead, not the broker's tag-aware ones. Use /v1/browse/tenants/{tenant}/projects/{project}/pact-badges. |
| Endpoint | Apiome serves | Not served | Status | Notes |
|---|
/labels β Every label | GET | β | β
Supported | β |
/pacticipants/label/{label} β Pacticipants with a label | GET | β | β
Supported | β |
/pacticipants/{pacticipant}/labels/{label} β A label on a pacticipant | GET PUT DELETE | β | β
Supported | PUT on an unknown pacticipant is a 404; the Pact Broker would create the pacticipant. |
| Endpoint | Apiome serves | Not served | Status | Notes |
|---|
/integrations β Every integration | β | GET DELETE | β Not planned | The Contracts workspace UI lists integrations (PFX-5.3, #6947). |
/integrations/provider/{provider}/consumer/{consumer} β Delete an integration | β | DELETE | β Not planned | Not planned: delete the consumer's versions (or a pacticipant) instead. Use /v1/tenants/{tenant}/pact-retention. |
/dashboard β Dashboard data | β | GET | β Not planned | The Pact Broker's own UI; Apiome has its own. |
/dashboard/provider/{provider}/consumer/{consumer} β Dashboard data of an integration | β | GET | β Not planned | The Pact Broker's own UI; Apiome has its own. |
/relationships β Integrations as CSV | β | GET | β Not planned | The Pact Broker's own UI. |
/groups/{pacticipant} β Network graph data | β | GET | β Not planned | See PFX-5.3 (#6947). |
/metrics β Row counts | β | GET | β Not planned | Apiome reports usage under /v1/ops. |
/test/error β Error test | β | GET POST | β Not planned | A Pact Broker diagnostic. |
Provider contracts (PactFlow)β
| Endpoint | Apiome serves | Not served | Status | Notes |
|---|
/contracts/provider/{provider}/version/{providerVersion} β The OpenAPI provider contract of a provider version | GET PUT | β | β
Supported | Used by PactFlow's provider-contract publishing API. Also takes apiomeVersion to render the contract from an Apiome version (PFX-2.1, #6925). Publishing compares the contract with the pacts that need it and stores bi-directional verification results; the answer lists them in comparisons (PFX-2.3, #6927). verificationResults is read β JUnit, Newman JSON, Schemathesis NDJSON, or an Apiome report via providerVerificationReportId β into selfVerification; a contract without passing evidence is unverified (PFX-2.4, #6928). |
Apiome additionsβ
| Endpoint | Apiome serves | Not served | Status | Notes |
|---|
/pacts/check β Check a pact against provider versions before publishing | POST | β | β
Supported | Used by apiome pact check, the Publish page. Not a Pact Broker endpoint. Compares an unpublished pact with the provider contracts of the versions against names (main, deployed:<env>, version:<n>, draft:<revision>) and stores nothing (PFX-8.4, #7301). |
/pacts/generate β Generate a pact from a mock capture session | POST | β | β
Supported | Used by apiome pact record, the Pact from a mock page. Not a Pact Broker endpoint. Turns the calls a consumer made to the hosted mock with X-Mock-Capture into a Pact v4 document and a report (left-out calls, overrides, the check against the mocked spec, the change since the previous pact); stores nothing (PFX-9.2, #7320). Also takes traffic (the capture history: window, caller) or scenarios (operations Γ mock scenarios) instead of a session (PFX-9.5, #7323). |
/pacts/record β Publish, hold or skip a pact recorded in CI | POST | β | β
Supported | Used by apiome pact record --publish, the record command of the GitHub Action. Not a Pact Broker endpoint. Applies the mock's standing recording policy to a pact generated from a capture session: publish only when the tests passed (or always), and publish a pact that got looser while telling the owners, or hold it for review (PFX-9.6, #7324). |
/pacts/generate/traffic β Count the past traffic a pact can be generated from | GET | β | β
Supported | Used by The Pact from a mock page. Not a Pact Broker endpoint. How many captured calls one mock version holds for a consumer in a window and from a caller, and the callers in the window; stores nothing (PFX-9.5, #7323). |
/pacts/generate/scenarios β List the operation Γ scenario pairs a pact can be built from | GET | β | β
Supported | Used by The Pact from a mock page. Not a Pact Broker endpoint. Operations Γ the version's mock scenarios: what the mock answers to each pair, or why it cannot serve it; stores nothing (PFX-9.5, #7323). |
/contracts/provider/{provider}/version/{providerVersion}/check β Check a provider contract before publishing it | POST | β | β
Supported | Used by The Publish a provider contract page. Not a Pact Broker endpoint. Takes the publish body (or contentUrl) and reports what the publish would record against each consumer's pact, the operations no pact uses, and a conflicting earlier contract; stores nothing (PFX-8.6, #7303). |
The suite runs the real tools against a fresh Apiome. It drives three clients through
publish β verify β record-deployment β can-i-deploy:
| Client | What it exercises |
|---|
pact-broker CLI (pactfoundation/pact-cli) | create-environment, publish, pact-provider-verifier with result publishing, record-deployment, can-i-deploy (yes, then no for an unverified version), create-version-tag, record-release, record-support-ended, record-undeployment, describe-environment, list-environments, create-webhook, create-or-update-webhook. |
| pact-js | A PactV3 consumer test, then the Verifier (the Rust core) fetching pacts with selectors and publishing its result. |
| pact-jvm | A JUnit 5 consumer test, the Gradle plugin's pactPublish, then a JUnit 5 provider test that verifies from the broker and publishes its result. |
The suite also compares the HAL documents the clients read (the index, the pacticipant, the pact,
for-verification, the verification result, environments, the matrix, can-i-deploy, a webhook and a 501)
with checked-in golden transcripts. Any change to what a Pact client sees therefore shows up in
review.
Run it on your machine with Docker and uv:
scripts/pact_conformance/run.sh
scripts/pact_conformance/run.sh --clients cli
scripts/pact_conformance/run.sh --update-golden
CI runs the Pact Broker conformance workflow on every pull request that changes the Pact
Broker routes or the suite. You can also start it from the Actions tab.