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.47.0 spec/support/markdown_pact.json
pact_broker-2.46.0 spec/support/markdown_pact.json
pact_broker-2.45.0 spec/support/markdown_pact.json
pact_broker-2.44.0 spec/support/markdown_pact.json
pact_broker-2.43.0 spec/support/markdown_pact.json
pact_broker-2.42.0 spec/support/markdown_pact.json
pact_broker-2.41.0 spec/support/markdown_pact.json
pact_broker-2.40.0 spec/support/markdown_pact.json
pact_broker-2.39.0 spec/support/markdown_pact.json
pact_broker-2.38.1 spec/support/markdown_pact.json
pact_broker-2.38.0 spec/support/markdown_pact.json
pact_broker-2.37.0 spec/support/markdown_pact.json
pact_broker-2.36.1 spec/support/markdown_pact.json
pact_broker-2.36.0 spec/support/markdown_pact.json
pact_broker-2.35.0 spec/support/markdown_pact.json
pact_broker-2.34.0 spec/support/markdown_pact.json
pact_broker-2.33.0 spec/support/markdown_pact.json
pact_broker-2.32.0 spec/support/markdown_pact.json
pact_broker-2.31.0 spec/support/markdown_pact.json
pact_broker-2.30.0 spec/support/markdown_pact.json