Sha256: efba7e6fc60c2a3f92ddcb84272f1435c9f87188f2efe50c5b3e4f630c3a5682

Contents?: true

Size: 1.17 KB

Versions: 103

Compression:

Stored size: 1.17 KB

Contents

### A pact between Some Consumer and Some Provider

#### Requests from Some Consumer to Some Provider

* [A request for alligators in Brüssel](#a_request_for_alligators_in_Brüssel_given_alligators_exist) given alligators exist

* [A request for polar bears](#a_request_for_polar_bears)

#### Interactions

<a name="a_request_for_alligators_in_Brüssel_given_alligators_exist"></a>
Given **alligators exist**, upon receiving **a request for alligators in Brüssel** from Some Consumer, with
```json
{
  "method": "get",
  "path": "/alligators"
}
```
Some Provider will respond with:
```json
{
  "status": 200,
  "headers": {
    "Content-Type": "application/json"
  },
  "body": {
    "alligators": [
      {
        "name": "Bob",
        "phoneNumber": "12345678"
      }
    ]
  }
}
```
<a name="a_request_for_polar_bears"></a>
Upon receiving **a request for polar bears** from Some Consumer, with
```json
{
  "method": "get",
  "path": "/polar-bears"
}
```
Some Provider will respond with:
```json
{
  "status": 404,
  "headers": {
    "Content-Type": "application/json"
  },
  "body": {
    "message": "Sorry, due to climate change, the polar bears are currently unavailable."
  }
}
```

Version data entries

103 entries across 103 versions & 1 rubygems

Version Path
pact_broker-2.84.0 spec/support/generated_markdown.md
pact_broker-2.83.0 spec/support/generated_markdown.md
pact_broker-2.82.0 spec/support/generated_markdown.md
pact_broker-2.81.0 spec/support/generated_markdown.md
pact_broker-2.80.0 spec/support/generated_markdown.md
pact_broker-2.79.1 spec/support/generated_markdown.md
pact_broker-2.79.0 spec/support/generated_markdown.md
pact_broker-2.78.1 spec/support/generated_markdown.md
pact_broker-2.78.0 spec/support/generated_markdown.md
pact_broker-2.77.0 spec/support/generated_markdown.md
pact_broker-2.76.2 spec/support/generated_markdown.md
pact_broker-2.76.1 spec/support/generated_markdown.md
pact_broker-2.76.0 spec/support/generated_markdown.md
pact_broker-2.75.0 spec/support/generated_markdown.md
pact_broker-2.74.1 spec/support/generated_markdown.md
pact_broker-2.74.0 spec/support/generated_markdown.md
pact_broker-2.73.0 spec/support/generated_markdown.md
pact_broker-2.72.0 spec/support/generated_markdown.md
pact_broker-2.71.0 spec/support/generated_markdown.md
pact_broker-2.70.0 spec/support/generated_markdown.md