Sha256: 00fb6e1b892fe2d821869d25abefb011557423f699fd713be0289593d821889f

Contents?: true

Size: 1.15 KB

Versions: 110

Compression:

Stored size: 1.15 KB

Contents

{
  "provider": {
    "name": "Some Provider"
  },
  "consumer": {
    "name": "Some Consumer"
  },
  "interactions": [
    {
      "description": "a request for alligators in BrĂ¼ssel",
      "provider_state": "alligators exist",
      "request": {
        "method": "get",
        "path": "/alligators"
      },
      "response": {
        "headers" : {"Content-Type": "application/json"},
        "status" : 200,
        "body" : {
          "alligators": [{
            "name": "Bob",
            "phoneNumber" : {
              "json_class": "Pact::Term",
              "data": {
                "generate": "12345678",
                "matcher": {"json_class":"Regexp","o":0,"s":"\\d+"}
              }
            }
          }]
        }
      }
    },{
      "description": "a request for polar bears",
      "provider_state": null,
      "request": {
        "method": "get",
        "path": "/polar-bears"
      },
      "response": {
        "headers" : {"Content-Type": "application/json"},
        "status" : 404,
        "body" : {
          "message": "Sorry, due to climate change, the polar bears are currently unavailable."
        }
      }
    }
  ]
}

Version data entries

110 entries across 110 versions & 1 rubygems

Version Path
pact_broker-2.29.0 spec/support/markdown_pact.json
pact_broker-2.27.6 spec/support/markdown_pact.json
pact_broker-2.27.5 spec/support/markdown_pact.json
pact_broker-2.27.4 spec/support/markdown_pact.json
pact_broker-2.27.3 spec/support/markdown_pact.json
pact_broker-2.27.2 spec/support/markdown_pact.json
pact_broker-2.27.0 spec/support/markdown_pact.json
pact_broker-2.26.1 spec/support/markdown_pact.json
pact_broker-2.26.0 spec/support/markdown_pact.json
pact_broker-2.25.0 spec/support/markdown_pact.json
pact_broker-2.24.0 spec/support/markdown_pact.json
pact_broker-2.23.4 spec/support/markdown_pact.json
pact_broker-2.23.3 spec/support/markdown_pact.json
pact_broker-2.23.2 spec/support/markdown_pact.json
pact_broker-2.23.1 spec/support/markdown_pact.json
pact_broker-2.23.0 spec/support/markdown_pact.json
pact_broker-2.22.0 spec/support/markdown_pact.json
pact_broker-2.21.0 spec/support/markdown_pact.json
pact_broker-2.20.0 spec/support/markdown_pact.json
pact_broker-2.19.2 spec/support/markdown_pact.json