Sha256: 6e8a1d9ab4c30e7b4f1e0bdc8082739448f326c594f1fb342e13931f2b7fcdde

Contents?: true

Size: 1.6 KB

Versions: 111

Compression:

Stored size: 1.6 KB

Contents

{
  "consumer": {
    "name": "Example App"
  },
  "provider": {
    "name": "Example API"
  },
  "interactions": [
    {
      "description": "a request for an alligator",
      "providerState": "there is an alligator named Mary",
      "request": {
        "method": "get",
        "path": "/alligators/Mary",
        "headers": {
          "Accept": "application/json"
        }
      },
      "response": {
        "status": 200,
        "headers": {
          "Content-Type": "application/json;charset=utf-8"
        },
        "body": {
          "name": "Mary"
        },
        "matchingRules": {
          "$.body.name": {
            "match": "type"
          }
        }
      }
    },
    {
      "description": "a request for an alligator",
      "providerState": "there is not an alligator named Mary",
      "request": {
        "method": "get",
        "path": "/alligators/Mary",
        "headers": {
          "Accept": "application/json"
        }
      },
      "response": {
        "status": 404,
        "headers": {
        }
      }
    },
    {
      "description": "a request for an alligator",
      "providerState": "an error occurs retrieving an alligator",
      "request": {
        "method": "get",
        "path": "/alligators/Mary",
        "headers": {
          "Accept": "application/json"
        }
      },
      "response": {
        "status": 500,
        "headers": {
          "Content-Type": "application/json;charset=utf-8"
        },
        "body": {
          "error": "Argh!!!"
        }
      }
    }
  ],
  "metadata": {
    "pactSpecification": {
      "version": "2.0.0"
    }
  }
}

Version data entries

111 entries across 111 versions & 1 rubygems

Version Path
pact_broker-2.83.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.82.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.81.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.80.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.79.1 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.79.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.78.1 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.78.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.77.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.76.2 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.76.1 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.76.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.75.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.74.1 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.74.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.73.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.72.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.71.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.70.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.69.0 lib/pact_broker/db/seed/pact_3.json