Sha256: 3d3b446172aa0fdff7db05aa88fc58da6238153f42e0fe29ab31b60595c358e0

Contents?: true

Size: 1.12 KB

Versions: 92

Compression:

Stored size: 1.12 KB

Contents

### A pact between Some Consumer and Some Provider

#### Requests from Some Consumer to Some Provider

* [A request for alligators](#a_request_for_alligators_given_alligators_exist) given alligators exist

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

#### Interactions

<a name="a_request_for_alligators_given_alligators_exist"></a>
Given **alligators exist**, upon receiving **a request for alligators** 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

92 entries across 92 versions & 3 rubygems

Version Path
pact-mock_service-0.0.1 spec/support/generated_markdown.md
pact-1.3.3 spec/support/generated_markdown.md
pact-1.3.2 spec/support/generated_markdown.md
pact-1.3.1 spec/support/generated_markdown.md
pact-1.3.0 spec/support/generated_markdown.md
pact-1.2.1.rc2 spec/support/generated_markdown.md
pact-1.2.1.rc1 spec/support/generated_markdown.md
pact-1.1.1 spec/support/generated_markdown.md
pact-1.1.0 spec/support/generated_markdown.md
pact-1.1.0.rc5 spec/support/generated_markdown.md
pact-1.1.0.rc4 spec/support/generated_markdown.md
pact-1.1.0.rc3 spec/support/generated_markdown.md