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.112.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.111.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.109.1 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.109.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.108.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.107.1 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.107.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.107.0.beta.1 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.106.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.105.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.104.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.103.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.102.2 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.102.1 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.102.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.101.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.100.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.99.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.98.0 lib/pact_broker/db/seed/pact_3.json
pact_broker-2.97.0 lib/pact_broker/db/seed/pact_3.json