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.89.1 spec/support/markdown_pact.json
pact_broker-2.89.0 spec/support/markdown_pact.json
pact_broker-2.88.0 spec/support/markdown_pact.json
pact_broker-2.87.0 spec/support/markdown_pact.json
pact_broker-2.86.0 spec/support/markdown_pact.json
pact_broker-2.85.1 spec/support/markdown_pact.json
pact_broker-2.85.0 spec/support/markdown_pact.json
pact_broker-2.84.0 spec/support/markdown_pact.json
pact_broker-2.83.0 spec/support/markdown_pact.json
pact_broker-2.82.0 spec/support/markdown_pact.json
pact_broker-2.81.0 spec/support/markdown_pact.json
pact_broker-2.80.0 spec/support/markdown_pact.json
pact_broker-2.79.1 spec/support/markdown_pact.json
pact_broker-2.79.0 spec/support/markdown_pact.json
pact_broker-2.78.1 spec/support/markdown_pact.json
pact_broker-2.78.0 spec/support/markdown_pact.json
pact_broker-2.77.0 spec/support/markdown_pact.json
pact_broker-2.76.2 spec/support/markdown_pact.json
pact_broker-2.76.1 spec/support/markdown_pact.json
pact_broker-2.76.0 spec/support/markdown_pact.json