Sha256: ed69d318a8515cc64b359f93174622b5eba24f71b14858dd43d7a51c0be205f9

Contents?: true

Size: 1.13 KB

Versions: 115

Compression:

Stored size: 1.13 KB

Contents

# Publish a pact

Allowed methods: PUT

A pact is published to the broker using a combination of the provider name, the consumer name, and the consumer application version. The consumer application version will be used to determine which revision of the pact is the "latest" to return to the provider for verification, and will allow you to determine which versions of the consumer and provider are compatible with each other.

The pact generated by your passing consumer tests should be published to the broker during each CI build. Tools exist for this exist in most languages that have an implementation of pact.

Example:

    PUT http://broker/pacts/provider/Bar/consumer/Foo/version/1.2.104

    {
      "consumer": {
        "name": "Bar"
      },
      "provider": {
        "name": "Foo"
      },
      "interactions": [
        {
          "description" : "a request for something",
          "provider_state": "something exists",
          "request": {
            "method": "get",
            "path" : "/something"
          },
          "response": {
            "status": 200,
            "body" : "something"
          }
        }
      ]
    }

Version data entries

115 entries across 115 versions & 1 rubygems

Version Path
pact_broker-2.114.0 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.113.2 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.113.1 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.113.0 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.112.0 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.111.0 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.109.1 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.109.0 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.108.0 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.107.1 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.107.0 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.107.0.beta.1 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.106.0 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.105.0 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.104.0 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.103.0 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.102.2 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.102.1 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.102.0 lib/pact_broker/doc/views/index/publish-pact.markdown
pact_broker-2.101.0 lib/pact_broker/doc/views/index/publish-pact.markdown